- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.3.6 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
- foo
- Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.5
<?php
class Foo {
public function __construct($foo, $bar, $foo) {}
}
$r = new ReflectionClass('Foo');
$params = $r->getConstructor()->getParameters();
echo $params[2]->name;