ccccccc = new c();
	}
}

class a{
	var $one;
	var $two = 2;
	private $three;
	protected $four;
	public $five;
	private $six = "xxx";
	var $b;
	function __construct() {
		$this->b = new b();
	}
	function dosomething() {
		echo $this->one;
		echo $this->two;
		echo $this->three;
		echo $this->four;
		echo $this->five;
		echo $this->six;
	}
}
$obja = new a();
function dumpme(&$var = null) {
	if (in_array(gettype($var),array('object'))) {
		$var = (array)$var;
	}
	if (is_array($var)) {
		foreach($var as $k=>&$v) {
			dumpme($v);
		}
	}
	return $var;
}
var_dump($obja);
var_dump(dumpme($obja));

//echo"
[..."; var_dump(dumpme($obja)); echo "...]
"; ?>
########################## output ################################ object(a)#1 (7) { ["one"]=> NULL ["two"]=> int(2) ["three:private"]=> NULL ["four:protected"]=> NULL ["five"]=> NULL ["six:private"]=> string(3) "xxx" ["b"]=> object(b)#2 (3) { ["ccccccc"]=> object(c)#3 (2) { ["c1"]=> NULL ["c2"]=> string(3) "222" } ["b1"]=> NULL ["b2"]=> string(3) "222" } } array(7) { ["one"]=> &NULL ["two"]=> ∫(2) ["