Is there a version of str_replace() that functions as non case sensitive? (such as ereg vs. eregi)
If so, do tell! 🙂
why not use: ereg_replace($matchpatern, $replacement, $sourcestring);
or
eregi_replace($matchpatern, $replacement, $sourcestring);
Because that carries with it all the overheards of the regex engine. str_replace() is far more efficient for smaller replaces that don't require a regular expression.
I agree, there should be a case insensitive version of str_replace().
/Mike