Monday, March 9, 2009
PHP search and replace
When performing a simple search/replace inside of a string use str_replace or strtr over ereg_replace and preg_replace whenever possible. Reserve use of the latter functions for complex search/replace operations where regular expressions are required. The str functions are much faster.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment