On Wed, 20 Mar 2002, Martin Towell wrote:
> use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists,
> but the former function does)

Close - it's eregi_replace().

To use preg_replace case-insensitively, just toss an 'i' at the end of 
your pattern. Instead of:

   preg_replace('/abc/', 'def', $x);


   preg_replace('/abc/i', 'def', $x);


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to