Re: Is there a way?
| From: | Martin Clifford | Date: | Tue, 16 Jul 2002 18:23:28 +0000 |
| Subject: | Re: Is there a way? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107946@lists.php.net to get a copy of this message | ||
It's called "here doc" formatting, and follows the pattern below:
$chunk = <<< EOF;
// stuff here
EOF;
Hmm. For some reason that just doesn't look right. I'm sure someone will correct it if
I'm wrong though :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Chris Crane" <ccrane@inxdesign.com> 07/16/02 02:03PM >>>
In Perl you could print a block of information as it was written like this;
print <<HTML_END;
This a whole bunch of HTML code!!!
HTML_END
The best part about this, was that you did not have to escape your " and you
could mix in your variables making it easy to design and layout the HTML. Is
there a similiar way to do this in PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php