php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #537 Case insensitive string compare
Submitted: 1998-07-11 00:38 UTC Modified: 1998-07-11 08:55 UTC
From: walton at nordicdms dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Final Release OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: walton at nordicdms dot com
New email:
PHP Version: OS:

 

 [1998-07-11 00:38 UTC] walton at nordicdms dot com
I just noticed that there doesn't appear to be a direct way to do a case-insensitive string compare.  Sure, you can strtoupper() or strtolower() both strings first, but a strcasecmp() or strcmpi() function would be handy.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-11 08:55 UTC] zeev
Added strcasecmp()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC