Restore the previous exception handler with restore_exception_handler() function in PHP

Description

The following code shows how to restore the previous exception handler with restore_exception_handler() function.

Example


/*w w w.  j av  a 2s. co m*/

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




















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition