Sending an array of parameters to bind_param
问题 I have the parameters to send to a prepared statement in an array, I am using call_user_func_array and using it as such call_user_func_array(array($stmt, "bind_param"), array_merge(array($types), $params_fixed)) , where $types contains the types and $params_fixed contains the parameters. I ran it and got the error Warning: Parameter 2 to mysqli_stmt::bind_param() expected to be a reference, value given in ... , I searched for this error and an answer was to send the parameters by reference so