title: Parse error: syntax error, unexpected '<<'(T_SL) on line 2 using php heredoc syntax
body: <p>When I run this code on my editor, it returns an error. </p>
  
  <p>My php version is <strong>5.4.35</strong>    </p>
  
  <p>Code:</p>
  
  <pre><code>&lt;?php
  $name = &lt;&lt;&lt;SQL my name is amit
  SQL;
  echo $name;
  ?&gt;        
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '&lt;&lt;'(T_SL) on line 2</p>
  </blockquote>
  
  <p>Can someone please explain why this error, or what my script is missing?</p>
  
  <p>Thanks. </p>