Skip to content

Commit

Permalink
Add ExcelReader explanation (fix #147)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Jan 22, 2015
1 parent 7e7aa8a commit 6222a8f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6222a8f

Please sign in to comment.