<?php class foo { private $a; public $b = 1; public $c; private $d; static $e; public function test() { var_dump(get_object_vars($this)); // we pass $this in here, private is available } } $test = new foo; var_dump(get_object_vars($test)); // This doesn't get the private stuff $test->test(); // but this one does
You have javascript disabled. You will not be able to edit any code.