Set a user-defined exception handler function:
The above code will output something like this:
The set_exception_handler() function sets a user-defined exception handler function.
The script will stop executing after the exception handler is called.
|exceptionhandler||Required. Specifies the name of the function to be run when an uncaught exception occurs. NULL can be passed instead, to reset this handler to its default state|
|Return Value:||A string that contains the previously defined exception handler, or NULL on error or if no previous handler was defined|
|PHP Changelog:||Previously, if NULL was passed then this function returned TRUE. It returns the previous handler since PHP 5.5|