1--TEST-- 2get_class_vars(): Testing with static properties 3--FILE-- 4<?php 5 6class A { 7 static public $a, $aa; 8 static private $b, $bb; 9 static protected $c, $cc; 10 11 static public function test() { 12 var_dump(get_class_vars(__CLASS__)); 13 } 14} 15 16var_dump(get_class_vars('A')); 17var_dump(A::test()); 18 19?> 20--EXPECT-- 21array(2) { 22 ["a"]=> 23 NULL 24 ["aa"]=> 25 NULL 26} 27array(6) { 28 ["a"]=> 29 NULL 30 ["aa"]=> 31 NULL 32 ["b"]=> 33 NULL 34 ["bb"]=> 35 NULL 36 ["c"]=> 37 NULL 38 ["cc"]=> 39 NULL 40} 41NULL 42