PHP Training
Get Professional PHP Training in Mumbai, Internship Offered for Diploma in Web Development
New batch of Codeigniter Framework Training Starting from December 1, 2015.
15/07/2013
5. Favour str_replace() over ereg_replace() and preg_replace()
Str Replace
Speed tests show that str_replace() is 61% faster.
In terms of efficiency, str_replace() is much more efficient than regular expressions at replacing strings. In fact, according to Making the Web, str_replace() is 61% more efficient than regular expressions like ereg_replace() and preg_replace().
If you’re using regular expressions, then ereg_replace() and preg_replace() will be much faster than str_replace().
Fan of the week is... Marilyn Jimenez Ellasos!
Click here to claim your Sponsored Listing.
Category
Contact the school
Telephone
Website
Address
G4, Lake City Towers, Teen Hath Naka
Mumbai
400604