I am using the following code to get the methods from a class:
$reflector = new \ReflectionClass ( $className );
$methods = $reflector->getMethods(ReflectionMethod::IS_PUBLIC);
print_r ( $methods[0] );
Then all i get from it is the name
of the property. But I am also interested in the property type. How can i get that info?
function foo (array $arr);
I want to know what type$arr
is.