Re: best way todo a case insensitive str_replace

From: Date: Mon, 21 Feb 2005 16:02:03 +0000
Subject: Re: best way todo a case insensitive str_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209135@lists.php.net to get a copy of this message
pmpa wrote:
What is the best way to do a string insensitive replace? Currently I am doing:
I would encourage you to use eregi_replace function that uses regular expressions. $text = eregi_replace("([gr])", "<b>\\1</b>", $text); Ville

« previous php.general (#209135) next »