PHP restore_exception_handler() Function

PHP restore_exception_handler Function


Define :

The restore_exception_handler() is inbuilt function in php.This function restores the previously defined exception handler function. This function is used after changing the exception handler function using set_exception_handler(), to revert to the previous exception handler (which could be the built-in or a user defined function)

Syntax of restore_exception_handler()
  restore_exception_handler()

Given below example shows the usage of restore_exception_handler() function.

Output : [myException1]: This triggers is the first exception handler...