读取csv
function input_csv($handle) { $out = array (); $n = 0; while ($data = fgetcsv($handle, 10000)) { $num = count($data); for ($i = 0; $i < $num; $i++) { $out[$n][$i] = $data[$i]; } $n++; } return $out; }
标签:function class pos handle while for gpo fgetc nbsp
读取csv
function input_csv($handle) { $out = array (); $n = 0; while ($data = fgetcsv($handle, 10000)) { $num = count($data); for ($i = 0; $i < $num; $i++) { $out[$n][$i] = $data[$i]; } $n++; } return $out; }
标签:function class pos handle while for gpo fgetc nbsp
原文地址:http://www.cnblogs.com/mitang/p/8035286.html