-----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-----

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

Reply via email to