PHP读取CSV文件 $file = fopen($filePath,"r"); while(!feof($file)) { $playerData[] = (fgetcsv($file)); } fclose($file);