class T{ const DDD="ddd"; static $bbb="bbb"; private $aa = 'aaa'; protected $bb = 'bbb'; public $cc = 'ccc'; private function __set($name , $value){ //$this->$name = $value; } private function __get($name){ //return $this->$name; }}T::DDD;T::$bbb;$oa = new T();$oa->aa="This is aa .";$oa->ccccc="This is ccccccccc .";Reflection::export(new ReflectionClass('T'));结果如下:Class [ <user> class T ] { @@ D:\xampp\htdocs\atest\test.php 18-33 - Constants [1] { Constant [ string DDD ] { ddd } }