Re: Re: [PHP] preg_match_all problem

From: Date: Tue, 02 Nov 2004 00:48:12 +0000
Subject: Re: Re: [PHP] preg_match_all problem
Groups: php.general 
Request: Send a blank email to php-general+get-200897@lists.php.net to get a copy of this message
> From: "Ryan A" <ryan@coinpass.com> > $content = str_replace($matches[$index][0],$value,$content); > > If you are interested in seeing the whole script, just scroll down. I'm not... but thanks. Did you read what I wrote? using preg_match twice and then str_replace is a waste. Learn to use preg_replace_callback() to make this worthwhile. ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html

« previous php.general (#200897) next »