- var_dump: documentation ( source)
<?php
class A {
function another()
{
echo "hello another";
$this->bingo();
}
protected function test() { return 'pass'; }
function bingo()
{
echo "talk";
}
}
class B extends A { public function run() { return $this->test(); } }
$b = new B();
$b->another();
var_dump($b->run());