(N is unknown)
$controller->$action($params);
must be
$controller->$action($param1, $param2, $param3… $paramN);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not really sure what you want, but if you want to call a method with an unknown number of parameters you can use
call_user_func_array()for example:
which given an array like:
would be equivalent to this:
You could build such an array by doing something like below, but I think it would be better to use an array in the first place