Php/docs/reflectionclass.getmethod
来自菜鸟教程
参数
name- 要反射的方法名称。
范例
Example #1 ReflectionClass::getMethod() 的基本用法
<?php$class = new ReflectionClass('ReflectionClass');$method = $class->getMethod('getMethod');var_dump($method);?>
以上例程会输出:
object(ReflectionMethod)#2 (2) {
["name"]=>
string(9) "getMethod"
["class"]=>
string(15) "ReflectionClass"
}