note 106776 added to language.oop5.decon

From: Date: Mon, 05 Dec 2011 21:50:05 +0000
Subject: note 106776 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-184922@lists.php.net to get a copy of this message
If you use __destruct in your script manually it's not automatically unset the $vars inside the the script. For that you can use following script to clean up the class. public function __destruct() { foreach ($this as $key => $value) { unset($this->$key); } } ---- Server IP: 217.160.235.204 Probable Submitter: 178.200.160.19 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php Edit -- https://master.php.net/note/edit/106776 Del: integrated -- https://master.php.net/note/delete/106776/integrated Del: useless -- https://master.php.net/note/delete/106776/useless Del: bad code -- https://master.php.net/note/delete/106776/bad+code Del: spam -- https://master.php.net/note/delete/106776/spam Del: non-english -- https://master.php.net/note/delete/106776/non-english Del: in docs -- https://master.php.net/note/delete/106776/in+docs Del: other reasons-- https://master.php.net/note/delete/106776 Reject -- https://master.php.net/note/reject/106776 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184922) next »