PHP 5, PHP 7, PHP 8
restore_exception_handler - Restores the previously defined exception handler function
Code Examples

restore_exception_handler( ): bool

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).


This function has no parameters.

Return Values

This function always returns true.

Related Functions

Example of restore_exception_handler

Show all examples for restore_exception_handler

PHP Version:

Function restore_exception_handler:

Error Handling and Logging Functions

Most used PHP functions