时间:2021-07-01 10:21:17 帮助过:15人阅读
getModifiers());
print_r($s);
$foo = new ReflectionMethod('Test', 'bar');
$s=Reflection::getModifierNames($foo->getModifiers());
print_r($s);
------解决方案--------------------
http://cn.php.com/manual/en/class.reflectionmethod.php
------解决方案--------------------
反射的典型应用
------解决方案--------------------
http://www.php.com/manual/en/reflectionmethod.construct.php
一看就是反射,翻了翻就找到了这个。