From a1b3fae1d27ea14b4a92b63fb4a05cfd64519cb8 Mon Sep 17 00:00:00 2001 From: Jan Pecha Date: Fri, 22 Jun 2018 12:11:39 +0200 Subject: [PATCH] Readme: updated --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index efc3b56..7461f43 100644 --- a/readme.md +++ b/readme.md @@ -30,6 +30,12 @@ id,name ```php $iterator = new CzProject\CsvIterator\CsvIterator('/path/to/file.csv'); +// optional: +$iterator->setDelimiter(','); +$iterator->setEnclosure('"'); +$iterator->setEscape('\\'); +$iterator->setEncoding('UTF-8'); + while (($row = $iterator->fetch()) !== NULL) { echo $row['id']; // prints '1' echo $row['name']; // prints 'Gandalf The White'