php获取类中常量,属性,及方法列表的方法
php代码
$r = new reflectionclass($this);
zend_debug::dump($r->getconstants(), "constants");
zend_debug::dump($r->getproperties(), "properties");
zend_debug::dump($r->getmethods(), "methods");
以上就是php获取类中常量,属性,及方法列表的方法的内容。