sorich87 / read-csv

RFC 4180 compliant PHP library to read CSV files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RFC 4180 compliant PHP library for reading CSV files because PHP's fgetcsv() does not comply to RFC 4180

Copied from Drupal Ubercart Stock & Price CSV Updater module. http://www.ubercart.org/project/uc_stock_update-2x.

Example:

$csv_reader = new ReadCSV( $file_handle, ',', "\xEF\xBB\xBF" ); // Skip any UTF-8 byte order mark.
while ( ( $line = $csv_reader->get_row() ) !== NULL ) {
	var_dump( $line );
}

About

RFC 4180 compliant PHP library to read CSV files

License:GNU General Public License v2.0


Languages

Language:PHP 100.0%