php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11084 strings
Submitted: 2001-05-24 08:32 UTC Modified: 2001-05-24 13:37 UTC
From: andrus at vnet dot ee Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.5 OS: all
Private report: No CVE-ID: None
 [2001-05-24 08:32 UTC] andrus at vnet dot ee
Hi there :)

I hope i writing this mail to right place :)

When will be implemented case insensitive str_replace?
In to-do list its in long time already..

Also, php is missing (at least i havent found yet) one string matching function (most ppl not deal goodly with regexes, me too :\ )
Example: to match "abcdef" with mask "*cd*" and "ab?def" ... and so on, with wildcards.

Addionally, one thing would be great too in PHP, its like in C is in types.h ... functions isprint (char *c), isdigit (char *c) and so on ...


Andrus

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-24 13:37 UTC] derick@php.net
These kinds of matches are very easy with regular expressions:

preg_replace ("/*.cd*./", ....); for *cd*
and
preg_replace ("/abc.ef/", ....); for abc?ef

The isdigit functions are already implemented:

www.php.net/ctype
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC