get_object_vars()

From: Date: Fri, 14 Jun 2002 10:02:45 +0000
Subject: get_object_vars()
Groups: php.general 
Request: Send a blank email to php-general+get-102193@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, I'm using get_object_vars() to unset all of the object vars in a function like this: function destroy_properties($obj) { if($properties=get_object_vars($obj)) { foreach($properties as $key => $val) { unset($key); } return TRUE; } else return FALSE; } problem is, when I print($obj->property); I still get the value? What am I missing here? Many thanks... - -- Nick Wilson // www.explodingnet.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE9Cb9FHpvrrTa6L5oRAsdTAJ4iC2wNgF4T7UJPnh29oryoe/q2iwCeOhwN +N6Gx7i62Gyu1q1U/PVKA1M= =EvX1 -----END PGP SIGNATURE-----

« previous php.general (#102193) next »