php读取csv文件数据并输出

php

浏览数:288

2019-1-8

AD:资源代下载服务
\n";
while($csv_line = fgetcsv($fp)) {
    print '';
    for ($i = 0, $j = count($csv_line); $i < $j; $i++) {
        print ''.htmlentities($csv_line[$i]).'';
    }
    print "\n";
}
print '\n';
fclose($fp) or die("can't close file");
?>