I get a funny error when the "EOT" or the "$end" is indented.
PHP Code:
<?php
echo <<< EOT
HELLO!
EOT;
?>
which I researched to be exactly the same as:
PHP Code:
<?php
echo <<< PINEAPPLES
HELLO!
PINEAPPLES;
?>
^ works. But if I indent the $end
PHP Code:
<?php
echo <<< PINEAPPLES
HELLO!
PINEAPPLES;
?>
it produces an error?:
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_END_HEREDOC or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN
This seems really funny to me, does anyone know why it does this? I'm more curious as to learn why it gives me an error than "You just can't."

I indent all my code, so if I was territory that is indented 20 times, that would mean I would have to put the $end on the very first indent?