Skip to content

Commit

Permalink
Merge pull request #175 from damonzocp/main
Browse files Browse the repository at this point in the history
Fix README sheetExists() should be hasSheet()
  • Loading branch information
freekmurze authored Aug 22, 2024
2 parents e78dcb0 + 7d234ce commit 5822cdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ $rows = SimpleExcelReader::create($pathToXlsx)
->getRows();
```

if you want to check if a sheet exists, you can use the `sheetExists()` method.
If you want to check if a sheet exists, use the `hasSheet()` method.

```php
$sheetExists = SimpleExcelReader::create($pathToXlsx)
->sheetExists("sheet1");
$hasSheet = SimpleExcelReader::create($pathToXlsx)
->hasSheet("sheet1");
```

#### Retrieving header row values
Expand Down

0 comments on commit 5822cdb

Please sign in to comment.