I call the function using call_user_func_array:
call_user_func_array(array($this, 'myFunction'), array('param1', 'param2', 'param3'));
Everything is fine, if I do not know how many parameters a function requires. If a function needs 4 parameters, it sends me an error, I would like to check if I can call the function (with an array of parameters). is_callable () does not allow checking parameters. Edit: if the call fails, I need to call another function, so I need a check.
Thanks!
source
share