|
Posted by Tobierre on 10/25/05 21:15
Hi why don't you just do the following to get the same result?
$var = strtolower$var); //convert string to lower case
str_ireplace(..., $var);
if you don't want to convert the original string just do
$var = 'SomE STrinG';
$testvar = strtolower($var);
$str_ireplace(..., $testvar);
Tobierre
"windandwaves" <winandwaves@coldmail.com> wrote in message
news:H8X6f.2140$S24.150355@news.xtra.co.nz...
> Does anyone know of a function that works like str_ireplace in PHP < 5?
>
> str_ireplace(a,b,c) replaces a with b in c, just like str_replace, but
> case insensitive.
>
> TIA
>
> - Nicolaas
>
Navigation:
[Reply to this message]
|