rendered paste body<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><?phprequire_once('lib/array_functions.lib.php');?><html><head><title>Permission Mangement</title></head><body><pre><?phpclass c{ var $c1; var $c2 = "222"; function coocoobbbb() {}}class b{ var $ccccccc; var $b1; var $b2 = "222"; function __construct() { $this->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"<pre>[..."; var_dump(dumpme($obja)); echo "...]</pre>";?></pre></body></html>########################## 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) ["