$result = $mysqli_stmt->result_metadata(); $fields = $result->fetch_fields(); foreach($fields as $field){ $column[]=&$out[$field->name]; } call_user_func_array(array($mysqli_stmt,'bind_result'),$column); while ($mysqli_stmt->fetch()) { $t=array(); foreach($out as $key=>$val){ $t[$key]=$val; } $res[]=$t; }
array($mysqli_stmt,'bind_result')这个是干什么?
pardon110