且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用php读取csv文件的特定列

更新时间:2023-01-15 19:37:37

// before your while loop 
$wantedColumns = array(1,5,9,15);

// ...

for ($c=0; $c < $num; $c++) {
   if (!in_array($c,$wantedColumns)) continue;
   // ....