Re: Re: preg_match_all problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: "Ryan A" <ryan@xxxxxxxxxxxx>
> $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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux