RE: [PHP] Is there a way?
| From: | Darren Gamble | Date: | Tue, 16 Jul 2002 18:06:36 +0000 |
| Subject: | RE: [PHP] Is there a way? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107943@lists.php.net to get a copy of this message | ||
Good day,
> 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?
Yeppers. It's aaaalmost the same.
echo <<<MULTILINE
...
MULTILINE;
============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948