Posted: Wed Oct 15, 2003 10:33 am
Yeah, it's called heredoc. Do some research on it if your interested. It also works with return and declaring variables. Eg:
And, your welcome for the advice. Just don't go in and out of PHP too much - most of the time, you'll lose track.
-Nay
Code: Select all
// declare a variable
$var = <<< END
this
means
war
END;
$var = nl2br($var);
echo $var;
// return from a function
function this($that) {
return <<< THAT
<p>$that</p>
THAT;
}-Nay