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

2002-04-10 Thread Cal Evans

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:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 11:04 AM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] unsetting an instance from within its class

2002-04-10 Thread Erik Price

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
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php