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" <[EMAIL PROTECTED]> 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 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to