ReflectionClass::getMethod 获取类方法的 ReflectionMethod &reftitle.description; public ReflectionMethodReflectionClass::getMethod stringname 获取类方法的 ReflectionMethod &reftitle.parameters; name 要反射的方法名称。 &reftitle.returnvalues; 一个 ReflectionMethod &reftitle.errors; 如果方法不存在则会抛出 ReflectionException 异常。 &reftitle.examples; <methodname>ReflectionClass::getMethod</methodname> 的基本用法 getMethod('getMethod'); var_dump($method); ?> ]]> &example.outputs; string(9) "getMethod" ["class"]=> string(15) "ReflectionClass" } ]]> &reftitle.seealso; ReflectionClass::getMethods