mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5217 from dhensby/pulls/3.1/docs-csv-parser
DOCS Fixing CSV Parser docs - fixes #5004
This commit is contained in:
commit
20d116757a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user