From 6222a8f028e4b2a5a3459c58d82265baad1ac7da Mon Sep 17 00:00:00 2001 From: David de Boer Date: Thu, 22 Jan 2015 21:56:19 +0100 Subject: [PATCH] Add ExcelReader explanation (fix #147) --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 858a3bc3..0b37e2cb 100644 --- a/README.md +++ b/README.md @@ -329,6 +329,19 @@ $file = new \SplFileObject('path/to/ecxel_file.xls'); $reader = new ExcelReader($file); ``` +To set the row number that headers will be read from, pass a number as the second +argument. + +```php +$reader = new ExcelReader($file, 2); +``` + +To read the specific sheet: + +```php +$reader = new ExcelReader($file, null, 3); +``` + ###OneToManyReader Allows for merging of two data sources (using existing readers), for example you have one CSV with orders and another with order items.