Home >Backend Development >PHP Problem >How to set php error reporting level

How to set php error reporting level

coldplay.xixi
coldplay.xixiOriginal
2020-10-09 16:08:503581browse

How to set the php error reporting level: 1. Modify the error_reporting option in php.ini; 2. You can use the [error_reporting()] function to modify it in the php page.

How to set php error reporting level

How to set the error level of php:

1. How to modify the error level:

How to set php error reporting level

2. The error level is represented by a binary value: 1111 1111 1111 111 From left to right, the 1 on each bit represents an error level. The number represents:

How to set php error reporting level

3. Error reporting function code:

How to set php error reporting level

4. The system replaces the values ​​at each level with system constants for us.

How to set php error reporting level

5. During the development process, the error reporting level is higher. In the online product, the error reporting level is lower:

How to set php error reporting level

6. Summary of error levels:

How to set php error reporting level

If you want to know more about programming learning, please pay attention to the php training column!

The above is the detailed content of How to set php error reporting level. For more information, please follow other related articles on the PHP Chinese website!

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