RE: [PHP-WIN] Case insensitive str_replace
| From: | James Moore | Date: | Mon, 02 Apr 2001 14:57:34 +0000 |
| Subject: | RE: [PHP-WIN] Case insensitive str_replace | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6437@lists.php.net to get a copy of this message | ||
>
> Does anyone know how to do a case insensitive str_replace?
> I don't want to alter the case of the original string (so I can't do a
> strtolower first).
>
> I've seen some functions used with the likes of [^Aa] in them but I'm not
> sure how to use this...
> Anyone got any ideas?
use preg_replace with /i modifier.
James