考虑这样的CSV文件
item1,"description 1" item2,"description 2" item3,"description 3 description 3 continues on new line" item4,"description 4"
应该像这样解析
item1,"description 3 description 3 continues on new line" item4,"description 4"
有没有办法在PHP中解析这个具有多行值的CSV?
fgetcsv
应该能够正确解析这个. 我不建议手动这样做,解析CSV有很多这样的问题.