1--TEST-- 2get_class_vars(): Simple test 3--FILE-- 4<?php 5 6class A { 7 public $a = 1; 8 private $b = 2; 9 private $c = 3; 10} 11 12class B extends A { 13 static public $aa = 4; 14 static private $bb = 5; 15 static protected $cc = 6; 16} 17 18 19var_dump(get_class_vars('A')); 20var_dump(get_class_vars('B')); 21 22?> 23--EXPECT-- 24array(1) { 25 ["a"]=> 26 int(1) 27} 28array(2) { 29 ["a"]=> 30 int(1) 31 ["aa"]=> 32 int(4) 33} 34