Re: "here" document
| From: | Teodor Cimpoesu | Date: | Fri, 14 Jul 2000 16:12:31 +0000 |
| Subject: | Re: "here" document | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6662@lists.php.net to get a copy of this message | ||
Hi Zack!
On Fri, 14 Jul 2000, Zack Beatty wrote:
> Is there a Perl-style "here document" function in PHP for printing a block
> of output, such as:
> <?
> print <<END_OF_HERE
> blah
> blah
> blah
> yada
> yada
> yada
> END_OF_HERE
> ?>
>
> BTW, I did search the manual and list archives already. So please no RTFM
> comments. Thanks.
hmm, I though I sow it documented in "features" ...
$foo = <<<HTML
some stuff $here
HTML;
and
print <<<ENDTAG
some stuff $here[too]
ENDTAG;
-- teodor