What is PHP error handling?
Error handling in PHP is simple. An error message with filename, line number and a message describing the error is sent to the browser.
How to set error handling in PHP?
PHP set_error_handler() Function
The set_error_handler() function sets a user-defined error handler function. Note: The standard PHP error handler is completely bypassed if this function is used, and the user-defined error handler must terminate the script, die(), if necessary.