0

I'm using League\Csv to reformat CSVs. I'm reading in a CSV, manipulating the data, then writing the result out to a new CSV.

Reading the docs it says when reading a CSV it will

Filter out the empty lines;

Is there any way to stop this from happening?

Theo Kouzelis
  • 3,195
  • 5
  • 37
  • 66

1 Answers1

0

Have you tried using a Statement object to process the Reader? It gives you more control over the selected rows. Perhaps the default statement would not include empty row filtering.

https://csv.thephpleague.com/9.0/reader/

See Records Selection, Advanced Usage.

Sean Anderson
  • 614
  • 8
  • 20