PHP method to obtain the list of constants, attributes, and methods in a class
Php code
$r = new ReflectionClass($this); Zend_Debug::dump($r->getConstants(), "Constants"); Zend_Debug::dump($r->getProperties(), "Properties"); Zend_Debug::dump($r->getMethods(), "Methods");
The above is the content of the method of PHP to obtain the list of constants, attributes, and methods in a class. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!