note 77074 modified in function.register-shutdown-function by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Jul 2008 22:56:58 +0000 |
| Subject: | note 77074 modified in function.register-shutdown-function by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141778@lists.php.net to get a copy of this message | ||
Sinured's example of how to use a static method did not work for me.
But this did:
<?php
register_shutdown_function(array('theClass','theStaticMethod'));
?>
Hope this helps someone.
[EDIT by danbrown AT php DOT net: This example did not work for the author of this note because it
is written for PHP 5. The author was using PHP 4.]
--was--
Sinured's example of how to use a static method did not work for me.
But this did:
<?php
register_shutdown_function(array('theClass','theStaticMethod'));
?>
Hope this helps someone.
http://php.net/manual/en/function.register-shutdown-function.php