1
2<?php
3
4class foo {
5 private $a;
6 public $b = 1;
7 public $c;
8 private $d;
9 static $e;
10
11 public function test() {
12 var_dump(get_object_vars($this));
13 }
14}
15
16$test = new foo;
17var_dump(get_object_vars($test));
18
19$test->test();
20
21?>
22
23