Re: [PHP-DEV] information request

2002-07-23 Thread M Bruggeman

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




[PHP-DEV] information request

2002-07-18 Thread M Bruggeman

Hello,

I have been using php for some time now and am interrested in exploring 
how php handles strings. There are some things about the way php does 
things I find ugly but I would like to know more before I go making 
proposals.

I have read the docs and searched the php-dev list but have not found the 
kind of in depth discussion on the internals and strings that I am 
looking for.

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.)

Thankyou for your time and attention.
Martin


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