Hello,
I'm using heredoc syntax, and I'm not sure how to add an integer to a variable (which holds an integer). Right now, I have the following:
When I run this, I get a "Parse error: parse error, expecting `'}" message. I don't see why the second curly bracket is not being understood. Any ideas, anyone?PHP Code:$mainbody = <<< EOD
<h4>$first_article thru {$first_article + 9} of $total_articles</h4>
EOD;
Thanks,
TWR





Bookmarks