Re: HTML and PHP?

From: Date: Sat, 14 Apr 2001 18:09:01 +0000
Subject: Re: HTML and PHP?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-48567@lists.php.net to get a copy of this message
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: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > ............................................................................ Les Neste 678-778-0382 http://www.lesneste.com

« previous php.general (#48567) next »