on 3/20/02 12:24 AM, Martin Towell at [EMAIL PROTECTED] wrote:
use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but
the former function does)
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 4:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Case non-sensitive replacing with str_replace?
I'm doing some replacing with str_replace, but it's case sensitive. Is
there any way to make it not case-sensitive?
First of all, the function is eregi_replace(), not ereg_ireplace(). Anyway,
that one goes slower because it has regular expressions. Is there any
function that does't have regular expressions, but isn't case sensitive?