$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
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to