note 9251 added to Classes and Objects

From: Date: Tue, 24 Oct 2000 20:35:24 +0000
Subject: note 9251 added to Classes and Objects
Groups: php.notes 
Request: Send a blank email to php-notes+get-6927@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...'; } } http://www.php.net/manual/language.oop.php

« previous php.notes (#6927) next »