syntax question...
| From: | Kelly Meeks | Date: | Wed, 13 Nov 2002 01:49:30 +0000 |
| Subject: | syntax question... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-124130@lists.php.net to get a copy of this message | ||
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