I am getting a string parse error when doing something like this:
$str = <<<EOT
EOT;
Any idea why that might ever happen?
feedback
|
The termination of a heredoc has to be the VERY FIRST thing on a line, there can be no whitespace or indentation. So if you're doing this:
Your code will fail. You have to do this:
| |||||||||
feedback
|