Re: str_replace on words with an array

From: Date: Sun, 29 Oct 2006 21:54:13 +0000
Subject: Re: str_replace on words with an array
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-243842@lists.php.net to get a copy of this message
Paul Novitski wrote:
If you go this route, perhaps you could enclose each member of your original array in \b word boundary sequences using an array_walk routine so that you don't have to muddy your original array declaration statement. IIRC str_replace() does not interpret or understand regular expression syntax - you'd need preg_replace() for that
rich

« previous php.general (#243842) next »