- var_dump: documentation ( source)
<?php
class Foo {
protected $v = null;
public function test() {
var_dump( $this->v );
}
}
class Bar extends Foo {
public function gert($id) {
$this->v = $id;
call_user_func_array(array('parent', 'test'), func_get_args());
call_user_func_array(array($this, 'parent::test'), func_get_args());
}
}
$gert = new Bar();
$gert->gert(1);