- print_r: documentation ( source)
- array_shift: documentation ( source)
<?php
function bar($input) {
print_r(func_get_args());
}
function foo($input) {
$args = func_get_args();
array_shift($args);
bar($input, $args);
}
foo('Hallo %s %d', 'Foo', 42);