Home >Backend Development >PHP Tutorial >PHP method to get the list of constants, properties, and methods in a class
PHP method to get 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");