I think the echo approach is pretty handy if you want a subroutine to spit
out a common chunk of HTML which is less than an entire page. And the
here-doc marker lets you just paste existing HTML in place without having
to escape all the quotation marks. To me, this is a Good Thing.
At 01:56 PM 4/14/2001 -0400, Brian Clark wrote:
>Hi Steve,
>
>@ 11:34:26 PM on 4/13/2001, Steve Werby wrote:
>
>...
>> <?
>> echo <<<STOP
>
>> <html>
>> Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to
>> test for yourself? ;-)
>> And you can use whatever marker (the 'STOP' above and below) you choose.
>> Just make sure you don't indent the closing marker or the parser will miss
>> it!
>> </html>
>
>> STOP;
>?>>
>
>Why even bother? Why not just do this?
>
>?>
>
><html>
> Boo
></html>
>
><?php
>
>-Brian
>--
> PGP is spoken here: 0xE4D0C7C8
> Please do not carbon copy me on list replies.
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
............................................................................
Les Neste 678-778-0382 http://www.lesneste.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]