note 97450 deleted from function.register-shutdown-function by danbrown
| From: | danbrown@php.net | Date: | Tue, 20 Apr 2010 16:29:58 +0000 |
| Subject: | note 97450 deleted from function.register-shutdown-function by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168455@lists.php.net to get a copy of this message | ||
Note Submitter: Alex Rath
----
Notice!
Although it says $function has to be a string, you can use Arrays or Clousures.
Example:
<?php
register_shutdown_function(function() {
//* TODO *//
//* Put some senseful code in here! *//
});
?>
They should change that "string $function" to "mixed $function"