Importing CSV that has line breaks within the actual fields

后端 未结 6 1997
挽巷
挽巷 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:57

    Yes you needs to find that comma and replace by some special characters like combination of {()} and finally replace them with , that you are originally looking for.

    Hope that helps you.

提交回复
热议问题