php-general | 2000071
Date: 07/14/00
- Next message: Teodor Cimpoesu: "Re: [PHP] INSTALATION PROBLEM"
- Previous message: Rasmus Lerdorf: "Re: [PHP] PHP_AUTH_USER not set?"
- In reply to: Zack Beatty: "[PHP] "here" document"
- Next in thread: Jordan Pickup: "Re: [PHP] "here" document"
- Reply: Jordan Pickup: "Re: [PHP] "here" document"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Teodor Cimpoesu: "Re: [PHP] INSTALATION PROBLEM"
- Previous message: Rasmus Lerdorf: "Re: [PHP] PHP_AUTH_USER not set?"
- In reply to: Zack Beatty: "[PHP] "here" document"
- Next in thread: Jordan Pickup: "Re: [PHP] "here" document"
- Reply: Jordan Pickup: "Re: [PHP] "here" document"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

