首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

error_reporting的用法解决思路

2013-03-01 
error_reporting的用法error_reporting(E_ALL ^E_NOTICE)error_reporting(E_ALL ~E_NOTICE)有什么区别?[解

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

热点排行