If I have a two functions, I know I can call function two from function one in this way:
function one($a,$b,$c,$d)
{
two($a,$b,$c,$d);
}
But is it possible to do it in a more dynamic way, something like this?
function one($a,$b,$c,$d)
{
$args = func_get_args();
two(list($args));
}
Yes, and you’re already halfway there ;). Use
call_user_func_array: