I am new to PHP.
I have the following code…
[php]<?php
$myString = “This is my String”;
echo <<<_END
This is a test
$myString
_END;
?>[/php]
Which is generating the following error…
PHP Parse error: syntax error, unexpected $end in /Applications/MAMP/htdocs/hipBondage/test.php on line 12
Line 12 is “_END;”
I have googled the error message but the 2 primary things that seem to cause it do not apply here…
- Unclosed “}” - No curly braces at all at least in my code.
- Whitespace in front of_END; I edited this entire thing in both Dashcode and Textedit making sure it was the first thing on the line.
I am running in MAC with MAMP 2.0.5
Apache 2.2.21
PHP 5.2.17
Can anyone offer advice?