Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] ereg() vs. preg_match() From: Andrei Zmievski (andrei <email protected>)
Date: 04/19/00

On Tue, 18 Apr 2000, Andi Gutmans wrote:
> Hey,
>
> Any idea how these two compare performance wise? Which is faster and is it
> significant?

I tested the ereg vs. preg functions a while back when I was writing the
extension, and preg functions seemed to be much faster. Of course, they
are also more powerful and allow you to do way more stuff than ereg - so
benchmarking them against each other would need to involve only simple
cases.

Try it yourself in non-debug mode.

-Andrei

"C combines all the power of assembly language with
 all the ease of use of assembly language" -- trad

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>