关闭方法:
1、在需要禁止notice提示的页面中添加“ error_reporting(E_ALL^E_NOTICE); ”代码。
复制下边这行代码到php文件里边即可:
error_reporting(E_ALL^E_NOTICE);
2、在php.ini文件中,将“error_reporting”项的值改为“E_ALL & ~E_NOTICE”;
关闭方法:
1、在需要禁止notice提示的页面中添加“ error_reporting(E_ALL^E_NOTICE); ”代码。
复制下边这行代码到php文件里边即可:
error_reporting(E_ALL^E_NOTICE);
2、在php.ini文件中,将“error_reporting”项的值改为“E_ALL & ~E_NOTICE”;