Re: nowdocs again

From: Date: Wed, 30 Jan 2008 18:38:54 +0000
Subject: Re: nowdocs again
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-35036@lists.php.net to get a copy of this message
$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. Going over it each time is sure recipe for errors, and is very annoying. Having something that can accept any text with absolutely no modification looks a good idea to me, and far more than "saving one keystroke". -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#35036) next »