Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
See here:
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
Warning
It is very important to note that the line with the closing identifier must contain no other characters, except a semicolon (. That means especially that the identifier may not be indented.
Netbeans ignore this completely.
Closing "EOT;" must always be on the left, no indentation
Invalid:
<?php class foo { public $bar = <<<EOT bar EOT; } // Identifier must not be indented ?>
Valid:
<?php class foo { public $bar = <<<EOT bar EOT; } ?>
(Example from official php doc)