Thank you, it worked, but it contains some dust. Is it possible to remove the dust? <?php class Obj { private $priv; public $pub; protected $prot = 'foo'; } $obj = new Obj(); $obj->more_var = 'val'; foreach ((array)$obj as $k => $v) echo "$k = $v\n"; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php