'content' (in this case). To start, do this <<<content
and to end it just type content;
on a line by itself.
The example you showed does echo the stuff out. It sets all the internal html to $var and echo's $var afterwards.
Hope this helps!
--Joseph Guhlin
http://www.bahwi.cc/
Web Developer / Unix Consultant
Kelly Meeks wrote:
I saw this used in a script, but after a couple of searches didn't come up with anything on php.net.
<?
$var=<<<content
<table>
<tr>
<td>
<font color="red">
$phpvarhere
</font>
</td>
</tr>
</table>
content;
echo $var;
?>
So, does this allow you to output mixed html/php without having to escape offending characters with no echo or print?
Conceptually, would the syntax above work?
TIA
Kelly
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php