- var_dump: documentation ( source)
<?php
class Foo {
public function load(string $file, array $data) {}
}
$reflection = new \ReflectionClass('Foo');
$method = $reflection->getMethod('load');
foreach ($method->getParameters() as $param) {
var_dump($param);
}