- var_dump: documentation ( source)
<?php
class A {
public function foo( $foo ) {
var_dump( func_get_args() );
}
}
class B extends A {
public function foo( $foo ) {
$args = func_get_args();
call_user_func_array( array( $this, 'parent::foo' ), $args );
}
}
$b = new B();
$b->foo( 'a', 'b', 'c' );