I’ve got this right now:
call_user_func(array($controller, $action), $params);
How can I split apart the $params array so that I can call a method with however many params there are, like controller->action($params[0], $params[1]); if there’s two items, or if there’s more than that maybe controller->action($params[0], $params[1], $params[2]);
Use
call_user_func_arrayinstead, it does just what you want: