php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #14299 explode() case sensitivity.
Submitted: 2001-11-30 11:01 UTC Modified: 2001-12-11 01:52 UTC
From: stephen at opido dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-11-30 11:01 UTC] stephen at opido dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-30 15:05 UTC] 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-12-11 01:52 UTC] philip@php.net
closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 18:01:30 2024 UTC