Home >Backend Development >PHP Problem >How to set php error reporting level
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 the error level of php:
1. How to modify the error 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:
3. Error reporting function code:
4. The system replaces the values at each level with system constants for us.
5. During the development process, the error reporting level is higher. In the online product, the error reporting level is lower:
6. Summary of error levels:
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!