Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] "here" document From: Teodor Cimpoesu (teo <email protected>)
Date: 07/14/00

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>