getProperties(), "Properties"); Zend_Debug::dump($r->getMethods(), "Meth"/> getProperties(), "Properties"); Zend_Debug::dump($r->getMethods(), "Meth">
Home >Backend Development >PHP Tutorial >The efficacy and function of Cordyceps sinensis and how to consume it. PHP method to obtain the list of constants, attributes, and methods in a class
Copy the code The code is as follows:
$r = new ReflectionClass($this);
Zend_Debug::dump($r->getConstants(), "Constants");
Zend_Debug::dump($ r->getProperties(), "Properties");
Zend_Debug::dump($r->getMethods(), "Methods");
The above introduces the efficacy and function of Cordyceps sinensis and its consumption method. PHP method to obtain the constants, attributes, and method lists in the class, including the efficacy and function of Cordyceps sinensis and its consumption method. I hope friends who are interested in PHP tutorials can learn from it. help.