When I run this code on my editor, it returns an error.
My php version is 5.4.35
$name = <<<SQL my name is amit
Parse error: syntax error, unexpected '<<'(T_SL) on line 2
Heredoc syntax requires a newline character immediately after the identifier, before the string content:
A third way to delimit strings is the heredoc syntax: <<<. After this operator, an identifier is provided, then a newline. The string itself follows, and then the same identifier again to close the quotation.
$name = <<<SQL my name is amit SQL; echo $name;