note 9251 rejected and deleted from Classes and Objects by ronabop
| From: | ronabop@php.net | Date: | Thu, 26 Oct 2000 00:03:23 +0000 |
| Subject: | note 9251 rejected and deleted from Classes and Objects by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6970@lists.php.net to get a copy of this message | ||
Am I mistaken, or is there no way to create a destructor for a class in PHP? I haven't found
anything in the documentation referencing it, and the C++ style syntax doesn't work. For
example, the following code doesn't work:
class logger
{
function logger()
{
echo 'I am a constructor...';
}
function ~logger()
{
echo 'I am a destructor...';
}
}