dscuu86620 2014-01-21 13:09
浏览 386

从PHP中的CSV文件中删除第一行。

Just trying to remove the first line from a CSV in php. Can't use str_replace as the content varies.

Thanks in advance.

  • 写回答

2条回答 默认 最新

  • doushao8421 2014-01-21 13:12
    关注

    How you're trying to do ? can you show to us the code ?

    You can do something like:

    $i = 0;
    while(fgetcsv() !== false) {
     if ($i == 0) 
       continue;
    
     // your code here ...
     ++ $i;
    }
    
    评论

报告相同问题?