Re: here document

From: Date: Wed, 01 Nov 2000 20:03:54 +0000
Subject: Re: here document
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23226@lists.php.net to get a copy of this message
Jack Dempsey wrote: > anything like perl's > print<<EOF > blah blah blah > EOF > > ? > thanks > > -- > 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 Yea, much simpler, a close PHP tag: ?> another example I use several ways: ?><PRE><? system("ls -l"); ?><PRE><? and one more for good luck: <? if($whatever) {?> A bunch of html <?}?>

« previous php.general (#23226) next »