The restore_exception_handler() function restores the previous exception handler.
This function is used to restore the previous exception handler after being changed by the set_exception_handler() function.
This function always returns TRUE.
restore_exception_handler()
Tip: The previous exception handler might have been built in a built-in exception handler or a user-defined function.
<?phprestore_exception_handler();throw new Exception('Uncaught Exception occured');?>
The output of the above code looks like this:
Fatal error : Uncaught exception 'Exception' with message 'Uncaught Exception occured' in C:webfoldertest.php:4Stack trace: #0 {main} thrown in C:webfoldertest.php on line 4