Skip to content

Commit

Permalink
Merge pull request #4392 from christian-fries/patch-1
Browse files Browse the repository at this point in the history
Add sheet state to worksheet info
  • Loading branch information
oleibman authored Mar 3, 2025
2 parents 875dc35 + 27518ac commit 93069fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/topics/reading-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ for a working example of this code.
### listWorksheetInfo

The `listWorksheetInfo()` method returns a nested array, with each entry
listing the name and dimensions for a worksheet:
listing the name, dimensions and state for a worksheet:

```php
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
Expand All @@ -865,7 +865,8 @@ foreach ($worksheetData as $worksheet) {
echo 'Rows: ', $worksheet['totalRows'],
' Columns: ', $worksheet['totalColumns'], '<br />';
echo 'Cell Range: A1:',
$worksheet['lastColumnLetter'], $worksheet['totalRows'];
$worksheet['lastColumnLetter'], $worksheet['totalRows'], '<br />';
echo 'Sheet state: ', $worksheet['sheetState'];
echo '</li>';
}
echo '</ol>';
Expand Down

0 comments on commit 93069fd

Please sign in to comment.