The call_user_func_array
function allows a callee to have less arguments than is passed.
A proof: Online PHP editor | output for lJpkZ
class A {public function test($a) {return $a;}}
echo call_user_func_array([new A, 'test'], [1, 2, 3]);
1
The call_user_func_array
function allows a callee to have less arguments than is passed.
A proof: Online PHP editor | output for lJpkZ
class A {public function test($a) {return $a;}}
echo call_user_func_array([new A, 'test'], [1, 2, 3]);
1