所以,假设我有一个由用户在某处设置的值数组:
$array = array("test0", "test1", "test2");
由此,我自动准备一个mysqli声明:
$statement = "SELECT * FROM x_table WHERE x = ? AND y = ? AND z = ?";
$s = "sss";
如何绑定参数?
...
$sql->bind_param($s, $array); // without manually typing $array[0], $array[1].. etc.
...