📜  php 逐行读取 csv 文件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:48.778000             🧑  作者: Mango

代码示例3
$csvFile = file('../somefile.csv');
    $data = [];
    foreach ($csvFile as $line) {
        $data[] = str_getcsv($line);
    }