it became interesting to me when _destruct is called: after deleting an object or before? Do you want to know if you can get the values of the properties of the object that we are going to delete inside the destructor and the properties of other objects? Small code that does not work:
class Boo{ public $ty=10; function __destruct(){ global $obj2; echo $this->ty.$obj2->grr; } } class Secon{ public $grr=9; } $obj2=new Secon; $obj=new Boo; unset($obj);