应用开发

PHP出现Methods with the same name as their class will not be constructors in a future version of PHP;

PHP版本在升级到高版本的时候往往会出现某些函数或语法被屏弃的现象,笔者环境从PHP 5.5 升级到PHP 7.0的时候原来的站点访问的时候就出现了如下错误

PHP Deprecated: Function eregi() is deprecated解决方法

在php升级到php5.3之后后,在使用的过程经常发现有的程序会出现Function eregi() is deprecated 的报错信息。是什么原因呢?