php5.3 报错Function eregi() is deprecated 解决方案

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

原文地址:https://www.cnblogs.com/xzjs/p/2975333.html