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

Added ability to ignore header rows by importer #20

Closed jared-fraser closed 11 years ago

jared-fraser commented 11 years ago

I often have needed to ignore the first 'header' row in a csv file. This is often difficult to code around using a callback.

This adds a config which defaults to false to maintain BC.

If this config is set than the first line of the parser will be skipped from adding to the result set.