[PHP] case-insensitive str_replace
by Reuben D Budiardja other posts by this author
May 2 2002 9:06PM messages near this date
[PHP] Re: How do I Install PHP on Apache 2, on win32
|
[PHP] Re: case-insensitive str_replace
Hi,
I am in need of a case-insensitive str_replace. I've tried the search the
archive and documentation, but the mostly suggested thing is to use
eregi_replace. But this does not really solve the problem for me since the
argument for eregi_replace can't be an array.
The feature that I use in str_replace is to put the 'search' and 'replace'
argument as an array, as described in the documentation for php > = 4.0.5
Some people suggested some functions in the archive and documentation, but I
cannot find anything that can receive arrays as the arguments.
So I am wondering if anyone has a function that is fully compatible with
str_replace for php > 4.0.5, but case-insensitive (something like
stri_replace). I don't really want to reinvent the wheel here.
Thanks in advance.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Reuben D Budiardja
J Smith
Reuben D Budiardja
CC Zona
Philip Olson
CC Zona
Mike Eheler
|