It was interesting to me:
$foo = <<< EOT Hello, World! EOT;
fair as
$foo = <<<EOT Hello, World! EOT;
and, in particular, is this true in all versions of PHP (or only in recent versions).
Interesting because I want to know if there is a syntactic space between the identifier <<< and first EOT . For example, my PHP interpreter 5.3.10 works correctly, but my vim text editor is not syntax - highlight heredoc in the same way if there is a space between <<< and EOT (the EOT identifier is painted white instead of purple).
So what is the deal? Are they legal in all versions of PHP or not?
source share