PHP/MySQL tips and tricks
View Single Post
07-17-2005, 01:56 AM
Join Date: May 2005
there are 2 types of functions for matching regular expressions
ereg, and preg_match
ereg, is PHP's regular expression matching function (as far as i know, can be wrong)
and preg_match is based on perl regular expression matching.
Both consume time, so try to use other this like substr, strstr if they can be applicable in your situation, but if its must to use regular expression then use
its twice as much faster than ereg.
theres nothing which you can't do in both, just speed difference is a lot, and it counts in fairly large applications.
Errors = Improved Programming.
View Public Profile
Send a private message to jaswinder_rana
Visit jaswinder_rana's homepage!
Find More Posts by jaswinder_rana