I have a php script to echo out a set number of posts per page:
<div class="posts">
<?php echo $post[1]; ?>
<?php echo $post[2]; ?>
<?php echo $post[3]; ?>
<?php echo $post[4]; ?>
</div>
This works fine, but I'd like to hold the data in a seperate php section, and then echo it out using a simple statement. So for this I created:
$posts = "".$post_single[1];$post_single[2];$post_single[3];$post_single[4];.""; // Error On This Line
<div class="posts">
<?php echo $posts; ?>
</div>
Whe I run this, I get the error Parse error: syntax error, unexpected '.' in ...
Any ideas how I can fix this to echo out the $posts
line correctly?