May I ask is there a PHP way to write a variable number of parameters to a function pointer?
For example (psuedocode)
$args = $request->get_args(); // get an array of arguments
$request->$func_pointer(foreach $args write $arg);
My objective is to allow the API user to write functions with fixed number of parameters. And later on pass the function name and the args which my API will execute on behalf.
Hope it is clear. Thank you.