Re: Constants in strings
| From: | Robert Cummings | Date: | Wed, 06 Jul 2011 19:11:12 +0000 |
| Subject: | Re: Constants in strings | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313962@lists.php.net to get a copy of this message | ||
On 11-07-06 02:59 PM, Jim Giner wrote:
I LOVE the heredocs tool. I only learned about it a couple of months ago - what a find! It makes generating my html for my web pages sooooo much easier and allows me to include my php vars within the html with much less confusion and simplifies the intermixing of html and php vars - no more single quote, double quote and dot stuff in an html tag. Sure you have to put the closing tag in column 1 - a mere blip against the pros.With respect to putting the closing tag in column 1... I've found the following to be fairly unobtrusive: <?php
$blah = <<<_
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
_;
?>
Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.