M
M
Max Ba2018-06-01 14:13:18
PHP
Max Ba, 2018-06-01 14:13:18

How to read csv without errors?

Guys, I've run into this problem. Excel saves files in csv format differently. Especially string values. Someone in Excel will make a line break inside the cell and that's it, the whole file is down the drain, given that I rely on the line break as a new array value. Or will insert special characters soon. Maybe there are some safe ways to always read these files correctly? Or is it always necessary to get confused just with the creation before importing such files?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yan-s, 2018-06-01
@Yan-s

php.net/manual/en/function.fgetcsv.php ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question