given that $this->paramTypes is a string in the format required by mysqli_stmt::bind_param - if not, you have to create this string parameter first.
I don't know if out or inout parameters do work in this case.
回答2:
mysqli_stmt::bind_param() will take a variable number of arguments
Assuming $this->paramTypes is also an array holding the correct type character for each variable (one of 'i', 'd', 's', 'b'), you could do something like