note 25299 added to language.oop.constructor

From: Date: Wed, 18 Sep 2002 16:40:38 +0000
Subject: note 25299 added to language.oop.constructor
Groups: php.notes 
Request: Send a blank email to php-notes+get-36896@lists.php.net to get a copy of this message
Manual Destructor Example Code: class MyObject() var $x; function MyObject() { $x=array(); register_shutdown_function(array(&$this, "UnMyObject")); } [...] function UnMyObject() { unset($this->$x); // not needed but used to demonstrate the register_shutdown_function } } -- http://www.php.net/manual/en/language.oop.constructor.php http://master.php.net/manage/user-notes.php?action=edit+25299 http://master.php.net/manage/user-notes.php?action=delete+25299 http://master.php.net/manage/user-notes.php?action=reject+25299

« previous php.notes (#36896) next »