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" <wi*********@coldmail.com> wrote in message
news:H8*******************@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