- var_dump: documentation ( source)
<?php
class Test {
function foobar(int $int, string $string, array $array, callable $callable, Test $object, $noType)
{
}
}
$r = new ReflectionMethod('Test', 'foobar');
foreach ($r->getParameters() as $param) {
var_dump(array($param->name, $param->hasType(), $param->getType()));
}