Importing CSV that has line breaks within the actual fields

后端 未结 6 1968
挽巷
挽巷 2021-02-20 08:23

I am using PHP to import a CSV file, which originates from an excel spreadsheet. Some of the fields contain line breaks in them, so when I reopen the csv in excel / open office

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-20 08:46

    Although it is old question the answer might be still relevant to ppl. There is currently new library (framework independent) http://csv.thephpleague.com/ which supports NL chars in fields as well as some filtering.

提交回复
热议问题