Home >Backend Development >PHP Tutorial > error_reporting的用法解决思路

error_reporting的用法解决思路

WBOY
WBOYOriginal
2016-06-13 12:53:101055browse

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;<br />
echo E_ALL ^ E_NOTICE , PHP_EOL;<br />
echo E_ALL & ~E_NOTICE , PHP_EOL;<br />
30719 8
30711
30711
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn