Bug #14299 Updated: explode() case sensitivity.
| From: | philip@php.net | Date: | Tue, 11 Dec 2001 06:52:54 +0000 |
| Subject: | Bug #14299 Updated: explode() case sensitivity. | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-73096@lists.php.net to get a copy of this message | ||
ID: 14299
Updated by: philip
Reported By: stephen@opido.com
Old Status: Feedback
Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.0.6
New Comment:
closed.
Previous Comments:
------------------------------------------------------------------------
[2001-11-30 15:05:38] philip@php.net
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.
------------------------------------------------------------------------
[2001-11-30 11:01:44] stephen@opido.com
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
stephen@opido.com
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14299&edit=1