php string replace vs regex
For all you budding php developers out there who are now experimenting with regular expressions and data clean up, I advise you think twice before using regex over a simple str_replace. If you are performing complex string replacements regex is the best choice and will give you a performance boost over using many str_replace ( and other functions ) in place of using one regular expression. There have been tests showing that using multiple preg_replace functions in a row can perform better than u... read more!
Posted in php | Post Comment

RSS Feed