关于fgetcsv函数fgetcsv(resource fp,int length [, string delimiter ,string enclosure,escape]]) 请把红色的部分解释一下。写个例子。 绿色是干什么的 分享到: 更多 ------解决方案--------------------$s =<<< TXT aaa,bbb,ccc "aaa","bbb","ccc" 'aaa'------解决方案--------------------'bbb'------解决方案--------------------'ccc' TXT; file_put_contents('csv_test.txt', $s); $fp = fopen('csv_test.txt', 'r'); print_r(fgetcsv($fp)); print_r(fgetcsv($fp)); print_r(fgetcsv($fp, "------解决方案--------------------", "'")); 登录后复制Array ( [0] => aaa [1] => bbb [2] => ccc ) Array ( [0] => aaa [1] => bbb [2] => ccc ) Array ( [0] => [1] => aaa [2] => ------解决方案-------------------- [3] => bbb [4] => ------解决方案-------------------- [5] => ccc [6] => )