I am using php 5.3 (Windows 7).
I create a function that call another function with dynamic variables
func A call func B.
func2($a, $b, $c, ) ... the number of parameters can be dynamic.
call_user_func("func2", $x) - what is the correct syntax to use : call_user function with parameters, that the number of parameters is unknown.
Thanks :)
I think what you are looking for is this http://www.php.net/call_user_func_array
call_user_func_array('func2', array($a, $b, $c));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With