Re: how to use a method of object with...
| From: | Michael Dearman | Date: | Tue, 26 Sep 2000 15:00:35 +0000 |
| Subject: | Re: how to use a method of object with... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17612@lists.php.net to get a copy of this message | ||
Remigiusz Sokolowski wrote:
>
> Hi!
>
> There is such a function like register_shutdown_function(string name)
> Once I wanted to register as a shutdown function a method of object.
> Problem is, how to put as an argument a name of a method?
> Is it possible?
> TIA
> --
>
> -------------------------------------------------------------------.------------
> Remigiusz Sokolowski e-mail: rems@wp.pl / \
> -----------------------------------------------------------------`---'----------
>
Hi RS,
Reading from book-
<?
function cleanup()
{
cleanup stuff;
}
register_shutdown_function("cleanup");
?>
Haven't used it myself. Yet.
Mike D.