goodby / csv

Goodby CSV is a high memory efficient flexible and extendable open-source CSV import/export library for PHP 5.3. 1. Memory Management Free This library designed for memory unbreakable. It will not be accumulated in the memory whole rows. The importer read CSV file and execute callback function line by line. 2. Multibyte support This library supports mulitbyte input/output: for example, SJIS-win, EUC-JP and UTF-8. 3. Ready to Use for Enterprise Applications Goodby CSV is fully unit-tested. The library is stable and ready to be used in large projects like enterprise applications.
MIT License
955 stars 148 forks source link

Fix issue with PHP empty() function checking the status of the first line #63

Closed zackkatz closed 9 years ago

zackkatz commented 9 years ago

The goal of the code was to skip empty padding row between the header and the body. The previous code skips valid first row values:

Numbers
0
1
2
3

Only 1, 2, 3 would be processed. This fixes that.

suin commented 9 years ago

@zackkatz Thank you!