Re: echo "" problem NEW
| From: | Bas van Rooijen | Date: | Wed, 09 Jan 2002 13:57:09 +0000 |
| Subject: | Re: echo "" problem NEW | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79905@lists.php.net to get a copy of this message | ||
Hello,
In addition to Henning Sprang's fine solutions, you can also do the following (given you use
PHP 4);
<? $xmp_width = 5;
$xmp_tdcolor = "#FF0000";
$xmp_text = "Some text";
echo <<<EOF
<TABLE WIDTH="{$xmp_width}">
<TR><TD COLOR="{$xmp_tdcolor}">$xmp_text</TD></TR>
</TABLE>
EOF;
?>
Note that the {} around your variables are optional, they will not be included in the output but can
be used to avoid confusion.
greets,
bvr.
On Wed, 9 Jan 2002 15:00:55 +0700, universal2001 wrote:
>Hi again!
>
>Thanks for the reply!
>
>I still have another question:
>
>I want to create a recycleable code by printing a set of html code which I
>copied and paste from my html edittor.
>
>however because there are lots of quotation marks on the html code it result
>an error page.