- var_dump: documentation ( source)
<?php
class A {
private function __call($name, $args) {
echo $name;
}
private function foo() {
echo 'ahoj';
}
}
class B extends A {
public function bar() {
echo $this->foo()."\n";
}
}
$a = new B;
$a->bar();
var_dump(new ReflectionMethod($a, 'foo'));
//$ref = new ReflectionClass($a);
//var_dump($ref->getMethods());