June 2017
Intermediate to advanced
536 pages
9h 49m
English
While a great deal of Error can now be caught via try...catch, there is also an extra mechanism to handle errors. PHP provides a mechanism in the form of a set_error_handler() function that allows us to define a custom handler function for all uncaught errors. The set_error_handler() function accepts two parameters, as per the following description:
mixed set_error_handler ( callable $error_handler [, int $error_types = E_ALL | E_STRICT ] )
The $error_handler function is either a handler function name passed as string, or entire anonymous handler function, whereas $error_types is one or more (separated by |) masks specifying the type of error. The handler function itself also accepts several parameters, as per ...
Read now
Unlock full access