PHP读取CSV文件

$file = fopen($filePath,"r");

while(!feof($file))
{
    $playerData[] = (fgetcsv($file));
}

fclose($file);

  

  

原文地址:https://www.cnblogs.com/jackson0714/p/7791600.html