STOP using ereg_replace()

beholder

Avatar: beholder

2009-09-07 02:24

If you're not relying on regular expressions, str_replace() can be far faster. I've noticed the ereg_replace() to be used in QC where str_replace() would be more applicable.

Furthermore, this function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

» Quick.Cart v3.x

beholder

Avatar: beholder

2009-09-07 02:27

preg_replace(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg_replace().

Back to top
about us | contact