Using:
print_r($object_or_class_name);
He should bring it out for you, properties that you can or cannot access.
For instance:
class tempclass { private $priv1 = 1; protected $prot1 = 2; public $pub1 = 3; } $tmp = new tempclass(); print_r($tmp); exit;
Just to illustrate that I have one private property, one protected property and one public property. Then we see the output print_r($tmp);
:
tempclass Object ( [priv1:tempclass:private] => 1 [prot1:protected] => 2 [pub1] => 3 )
Or I do not understand your post? Haha
source share