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

error_reporting的用法解决思路

WBOY
Release: 2016-06-13 12:53:10
Original
1070 people have browsed it

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 />
Copy after login
30719 8
30711
30711
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template