set_error_handler()

PHP Error Handling

PHP has set of functions which can deal with the handling the errors generated during the program execution. As a good programming practice it is good to use the Error