FoxyForest
03-18-2007, 07:11 PM
Hey,
I'd like to have an object destroy itself (that is, so that if it was referenced in any later code, there would be a big fat PHP error about it not existing). How can I do this?
I've tried:
unset($this) //doesn't destroy it
$this = null //error
$this->__destruct //error
I'd like to have an object destroy itself (that is, so that if it was referenced in any later code, there would be a big fat PHP error about it not existing). How can I do this?
I've tried:
unset($this) //doesn't destroy it
$this = null //error
$this->__destruct //error