RE: [PHP] unsetting an instance from within its class

From: Date: Wed, 10 Apr 2002 17:03:11 +0000
Subject: RE: [PHP] unsetting an instance from within its class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92424@lists.php.net to get a copy of this message
Never actually tried to do this (Never actually thought it was a good idea) but: this = null; may do the trick. Then again it may cause your php page to blow chow all over your screen. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -----Original Message----- From: Erik Price [mailto:pricee@hhbrown.com] Sent: Wednesday, April 10, 2002 11:04 AM To: php-general@lists.php.net Subject: [PHP] unsetting an instance from within its class Is there a way to unset or destroy an object instance from a method within its class? I'm trying to write a method that destroys its instance but I'm not sure how to refer to the object itself from within the class. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#92424) next »