RE: [PHP] Is there a way?
| From: | Jay Blanchard | Date: | Tue, 16 Jul 2002 18:09:31 +0000 |
| Subject: | RE: [PHP] Is there a way? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107944@lists.php.net to get a copy of this message | ||
[snip]
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?
[/snip]
$variable = <<< HERE
all kinds of stuff
HERE;
print("$variable");
HTH!
Jay
"Two wrongs are only the beginning"
*************************************
* Want to meet other PHP developers *
* in your area? Check out: *
* http://php.meetup.com/ *
* No developer is an island ... *
*************************************