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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 14:01:32 2024 UTC