用了php5.3后,经常发现有的程序会出现Function eregi() is deprecated 的报错信息。
原因:php5.3中不再支持eregi()函数,而使用preg_match()函数替代。
解决:手动将eregi()函数替换成preg_match() 。
php5.3 报错Function eregi() is deprecated 解决方案
纵千难万险,亦不忘初心
用了php5.3后,经常发现有的程序会出现Function eregi() is deprecated 的报错信息。
原因:php5.3中不再支持eregi()函数,而使用preg_match()函数替代。
解决:手动将eregi()函数替换成preg_match() 。