- var_dump: documentation ( source)
<?php
class A
{
public function a()
{
return 'a';
}
}
class B extends A
{
public function a()
{
return 'b';
}
}
$method = new \ReflectionMethod('B', 'a');
var_dump($method->getPrototype());