note 71108 deleted from function.unset by tularis
| From: | tularis@php.net | Date: | Sun, 12 Nov 2006 23:13:43 +0000 |
| Subject: | note 71108 deleted from function.unset by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119642@lists.php.net to get a copy of this message | ||
Note Submitter: leon dot pegg at gmail dot com
Reason: useless
----
This may not be the most conveniant method of object self destruction in php5 but i works see
example
class test{
private $self;
public function __construct(&$self){
$this->self = &$self;
}
public function destroy(){
$this->self = null;
}
}
$new = new test($new);
print_r($new);
$new->destroy();
print_r($new);
hope this helps someone