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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Wed Apr 24 13:01:29 2024 UTC