From: "John Nichel" <[EMAIL PROTECTED]>
i think str_replace is faster that ereg_replace
We tested that theory a while back on here (I don't remember the subject of the emails, so finding it would be kind of hard), and it came out to be almost exactally the same speed.
Not that speed tests like this really matter in the long run of your code, but:
str_replace: 0.26480603218079 ereg_replace: 0.61685109138489
preg_replace came in at about 0.4, btw
Yeah...less than 1/2 a second between str and ereg in your tests for 50,000 runs, works out to what? 1/500,000 of a second per single instance? Not worth losing sleep over...whatever yer comfortable with I say.
-- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php