hello all! i'm starting to work with php basics and i have some problem understanding how mix code with strings.
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.
the code below return me the error:
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
<?php
$html_str = <<<STR
<li><img alt="hello" src="$path_images/pencil.png"/><a title="hello" href="$path_pages/$page/action">Details</a></li>
STR;
print $html_str;
?>
can someone help me to find where i'm wrong and the name of this syntax style?
thanks v