1.PHP如何关闭notice(提示并非报错)级别的错误提示
1.1在php.ini文件中改动error_reporting -> error_reporting = E_ALL & ~E_NOTICE
1.2如果没有权限操作php.ini文件,可以在要禁止出现notice的页面中加入下面代码
/* Report all errors except E_NOTICE */ error_reporting(E_ALL^E_NOTICE);