note 53426 deleted from function.set-error-handler by cmb

From: Date: Sun, 13 Oct 2019 07:30:17 +0000
Subject: note 53426 deleted from function.set-error-handler by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212589@lists.php.net to get a copy of this message
Note Submitter: frank at ethisoft dot nl ---- Perhaps it is worth mentioning that in PHP5 both set_error_handler & set_exception_handler can be called with an array containing 2 arguments: 1) var ==> object 2) string ==> name of handler function in object EXAMPLE: <?php set_error_handler (array($object, 'handler_function')); set_exception_handler (array($object, 'handler_function')); ?> Both can point to the same object and handler_function so that both error and exception handling, which are very much alike usually, can be done by only 1 dedicated class.

« previous php.notes (#212589) next »