当前位置:Gxlcms > PHP教程 > error_reporting的用法解决思路

error_reporting的用法解决思路

时间:2021-07-01 10:21:17 帮助过:23人阅读

error_reporting的用法
error_reporting(E_ALL ^E_NOTICE)
error_reporting(E_ALL ~E_NOTICE)
有什么区别?


------解决方案--------------------
error_reporting(E_ALL ~E_NOTICE) 错误
这样才对
error_reporting(E_ALL & ~E_NOTICE)

没有区别
echo E_ALL .' '. E_NOTICE . PHP_EOL;
echo E_ALL ^ E_NOTICE , PHP_EOL;
echo E_ALL & ~E_NOTICE , PHP_EOL;
30719 8
30711
30711

人气教程排行