Merge pull request #5217 from dhensby/pulls/3.1/docs-csv-parser

DOCS Fixing CSV Parser docs - fixes #5004
This commit is contained in:
Loz Calver 2016-03-21 15:02:56 +00:00
commit 20d116757a

View File

@ -10,10 +10,10 @@
*
* <code>
* $parser = new CSVParser('myfile.csv');
* $parser->mapColumns(
* $parser->mapColumns(array(
* 'first name' => 'FirstName'
* 'lastname' => 'Surname',
* 'last name' => 'Surname'
* 'last name' => 'Surname',
* ));
* foreach($parser as $row) {
* // $row is a map of column name => column value