I am looking for a way to implement a "stri_replace" function, that is, one that is case insensitive.
I've tried tokenizing the target string into an array with explode, and then lower casing each array element -- and then doing the replace with str_replace(). But it seems like a lot of work. And I can't get it to work regardless.
Anybody know a short cut here, or have an algorithm that works?
Thanks in advance.