- var_dump: documentation ( source)
<?php
class Foo {
public function test($bar = null) {
var_dump(func_get_args());
}
}
class Baz extends Foo {
public function test(...$args) {
parent::test(...$args);
}
}
$baz = new Baz();
$baz->test();
$foo = new Foo();
$foo->test();