日期:2014-05-17  浏览次数:20475 次

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