I need case insensitive function, that would
make f.e.:
string wooooOooorrrrLlD -> world
I wanna to do that in anti swear system. Because many ppl. Just write not fuck, fuuck and so they are not get busted.
A have just a part of code and I can't find out how to do next:
PHP Code:
replace_same(const str,len)
{
for(new i=1;i<=len;i++)
{
if(equali(str[i],str[i-1]))
{
//how to do next?
}
}
}