Why is `ereg` deprecated in PHP?
问题 Why is ereg deprecated in PHP? I had a lot of functions which used this, now they always give warning. What is the alternative of this too? 回答1: http://pl.php.net/manual/en/function.ereg.php Note: As of PHP 5.3.0, the regex extension is deprecated in favor of the PCRE extension. Calling this function will issue an E_DEPRECATED notice. See the list of differences for help on converting to PCRE. 回答2: Ereg is deprecated because it was replaced by the the PCRE extension. The reason(s) it was