Re: heredoc syntax vs Double-Quotes
| From: | Paul Novitski | Date: | Thu, 16 Mar 2006 04:28:53 +0000 |
| Subject: | Re: heredoc syntax vs Double-Quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231996@lists.php.net to get a copy of this message | ||
At 07:06 PM 3/15/2006, Chris Kennon wrote:
when is using heredoc advisable over Double-Quotes?I love using heredoc primarily because it helps me separate logic from markup when generating HTML. The text in a heredoc expression is vanilla, no escape sequences needed, so there's less worry about typos. I find it one of the strongest features of PHP as compared to other scripting languages. Paul