PHP restore_exception_handler() Function

The restore_exception_handler() function restores the previous exception handler.This function is used to restore the previous exception handler after changing it with the set_exception_handler() function.

Tip:

The previous exception handler could be the built-in exception handler or a user-defined exception handler function.

Example -