- var_dump: documentation ( source)
<?php
class Foo {
public function __construct($id) {
var_dump( $id );
}
}
class Bar extends Foo {
public function __construct($id) {
call_user_func_array(array('parent', __FUNCTION__), func_get_args());
call_user_func_array(array($this, 'parent::' . __FUNCTION__), func_get_args());
}
}
new Bar(1);