标签: php reflection php-7
如何在php5中进行反射并获得更多关于变量类型的信息?
$reflector = new ReflectionMethod(new MyClass(),'methodName'); $params = $reflector->getParameters(); foreach( $params as $key=>$value): //-want to get something like $value->type echo $value->name; endforeach;