Re: nowdocs again
| From: | Antony Dovgal | Date: | Wed, 30 Jan 2008 18:46:24 +0000 |
| Subject: | Re: nowdocs again | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35034@lists.php.net to get a copy of this message | ||
On 30.01.2008 21:38, Stanislav Malyshev wrote:
>> $string = 'it\'s not that hard to add a $slash';
>
> It's not too hard to add a slash unless you have to do it in a big chunk
> of text that may contain quotes, slashes, etc. - e.g. random PHP code
> for a template generation.
Templates are usually put into separate files.
Embedding them into the code is just a weird fantasy and not a reason for a new construct.
--
Wbr,
Antony Dovgal