In addition to database purposes it is used when you want to EVAL a
string that may have embeded quotes. If they are not escaped the parser
will barf (due to the magic nature of quote? or because they are a
delimitor? This is one of the questions I am interrested in). If it was
simply a matter of database needs it could be handled transparently by
the database portion of the code and not be in the domain of the
programmer. In fact different databases have different escape needs. (as
http://www.php.net/manual/en/function.addslashes.php shows). There are
many issues and needs concerning strings and that is why I am looking
for a string guru for pointers to documentation or places to start.
Thanks for your time and attention.
Martin
Rasmus Lerdorf wrote:
Specifically I am interrested in variable interpolation and all the side
effects of double quotes (I consider addslashes/stripslashes to be a
kind of side effect as they are only necessary because of the magic
of double quotes - as I understand it now. But then that is why I am
asking for more information. There could be more to it.)
No, addslashes/stripslases has to do with databases that want quotes
escaped. They have nothing to do with PHP's internal string handling.
-Rasmus
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php