Re: here document

From: Date: Thu, 02 Nov 2000 06:02:09 +0000
Subject: Re: here document
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23326@lists.php.net to get a copy of this message
Don't forget that you can just do <?=$var?> or even handy things like <?=$someval?$onevar:$anothervar?> for conditional ouput here doc is great if you've got a bunch of html and simple $variables, but you'll probably find there's lots of times where it's annoying to use it. great to have a choice, huh? :) jason > Thanks very much to all for the great info shared. > Torben, that's a perfect example. It is DEFINITELY a PITA to output form > variables with all these <?PHP echo $something;?> all over the place. > The fact that the here doc option also lets you use the variables allows for > some easily/quickly coded html that has the occasional variable in it... > all the best, > Jack Dempsey

« previous php.general (#23326) next »