Skip to content

Commit 27518ac

Browse files
Add sheet state to worksheet info
1 parent 875dc35 commit 27518ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/topics/reading-files.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ for a working example of this code.
851851
### listWorksheetInfo
852852

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

856856
```php
857857
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
@@ -865,7 +865,8 @@ foreach ($worksheetData as $worksheet) {
865865
echo 'Rows: ', $worksheet['totalRows'],
866866
' Columns: ', $worksheet['totalColumns'], '<br />';
867867
echo 'Cell Range: A1:',
868-
$worksheet['lastColumnLetter'], $worksheet['totalRows'];
868+
$worksheet['lastColumnLetter'], $worksheet['totalRows'], '<br />';
869+
echo 'Sheet state: ', $worksheet['sheetState'];
869870
echo '</li>';
870871
}
871872
echo '</ol>';

0 commit comments

Comments
 (0)