ID: 14299
Updated by: philip
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Strings are case sensitive.  Kinda like: if ($var == 'Bar') will return false if $var 
= 'bar'. 

Maybe because explode() is such a commonly used function, this could be mentioned here 
(that it's case sensitive).  But doing so may open up a large can of worms (having to 
document this everywhere).  I vote -.5 on implementing this.

At first glance I don't see "strings being case sensitive" mention in the types.string 
section, maybe it should be.

Previous Comments:
------------------------------------------------------------------------

[2001-11-30 11:01:44] [EMAIL PROTECTED]

I recently added a note to http://www.php.net/explode and was informed that I should 
probably post it here.

Original Note:
I'm not sure if this is intentional, but there is no indication whether explode() is 
case insensitive. I ended up having to convert my strings and keywords to lowercase 
using strtolower() in order to do this. I'm using 4.0.4, FWIW.

I don't care one way or another if this is a bug or a documentation error since I was 
able to work around it, but I think other people may get confused when it fails to 
explode because there's no info about case sensitivity.

Thanks,
Stephen VanDyke
[EMAIL PROTECTED]

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14299&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to