How to use restore exception handler in PHP

This article describe about restore_exception_handler() Function in PHP.
  • 1538

restore_exception_handler() Function

This function restore the previous exception handler.

Restore the previous exception handler after changing it with the set_exception_handler() function it the main purpose of restore_exception_handler() function.

This function always return TRUE.

Syntax

restore_exception_handler()

 

Example

 

<html>
<body>
<?php
restore_exception_handler();
throw new Exception('Uncaught Exception occured');
?>
</body>
</html>

Output

pic20.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.