Skip to content

Commit

Permalink
Merge pull request #1 from damonzocp/fix-readme-use-has-sheet
Browse files Browse the repository at this point in the history
README.md Change sheetExists() to hasSheet().
  • Loading branch information
damonzocp authored Aug 20, 2024
2 parents e78dcb0 + 737fb91 commit 7d234ce
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 7d234ce

Please sign in to comment.