Reviewing a code, I found something in Heredoc notation:
<?php
$html = <<<XXX
<script type="text/javascript">
...
</script>
XXX; //must be begin in column 0 or ERR
echo $html;
This code, when executed, produces an error and I do not know why:
Parse error: syntax error, unexpected end of file in D:\PHP\heredoc.php on line 10
- Line 10 is the last of the script .