title: PHP syntax error T_ENCAPSED_AND_WHITESPACE
body: <p>i'm starting to work with php basics and i have some problem understanding how mix code with strings.</p>
  
  <p>I found a great and useful style to print string blocks but i don't know the name and i'm not able to find examples.</p>
  
  <p>the code below return me the error:<br/>
  Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /web/htdocs/food/user/index.php on line 120</p>
  
  <pre><code>&lt;?php   
  $html_str = &lt;&lt;&lt;STR
      &lt;li&gt;&lt;img alt="hello" src="$path_images/pencil.png"/&gt;&lt;a title="hello" href="$path_pages/$page/action"&gt;Details&lt;/a&gt;&lt;/li&gt;
  
  STR;
  print $html_str;
  ?&gt;
  </code></pre>
  
  <p>can someone help me to find where i'm wrong and the name of this syntax style?</p>
  
  <p>thanks
  v</p>