- var_dump: documentation ( source)
<?php
function f(int $a, Foo $b, $c)
{
}
$r = new ReflectionMethod('Memcached', 'add');
foreach ($r->getParameters() as $p) {
echo $p, "\n";
if ($p->hasType()) {
echo $p->getType();
var_dump($p->getType());
}
}