1.php is a custom error-handling function, and the specific settings are simple:
1) Write an error handler, the function name is named, but the parameters are fixed, for $errno, $errstr, where the former defaults to the error level, the latter is the specific information of the error.
2) Set the error handling method. Set_error_handler ("You name the error handler yourself.") This way, for all errors, will be handled in the way you set. In addition, if only one type of error handling is controlled:
3) Set the error handling method. Set_error_handler ("You name the error handler yourself.") ", some fixed constants); In this case, the fixed constants are set by PHP and represent different error registrations, including:
E_warning,e_notice, etc., can refer to http://www.w3school.com.cn/php/php_error.asp. In this way, only the error belongs to the fixed constant type of the error you wrote, it will be installed
You define the function for error handling.
PHP Custom Error functions