定义和使用odbc_fetch_array-获取结果行作为关联数组语法odbc_fetch_array(resource$result[,int$rownumber])从ODBC查询获取关联数组)资源。rownumber否(可选)选择要检索的行号。示例函数fetch2DArray($res){$i=0;$j=0;$toReturn="";while(odbc\_fetch\_row($res)){for($j=1;$j<=odbc\_num\_fields($res);$j++){$field\_name=odbc\_field\_name($资源,$j);$ar\[$field\_name\]=odbc\_result($res,$field\_name);}$toReturn\[$i\]=$ar;$i++;}返回$toReturn;}`相关函数odbc_fetch_row()-获取一行odbc_fetch_object()-获取结果行作为对象odbc_num_rows()-结果中的行数
