Add some documentation on read data from specific sheet
This commit is contained in:
parent
dbdf5f7f38
commit
89aa11478e
@ -22,6 +22,8 @@ foreach ($reader->getSheetIterator() as $sheet) {
|
|||||||
if ($sheet->getName() === 'summary') {
|
if ($sheet->getName() === 'summary') {
|
||||||
foreach ($sheet->getRowIterator() as $row) {
|
foreach ($sheet->getRowIterator() as $row) {
|
||||||
// do something with the row
|
// do something with the row
|
||||||
|
$row->getCells()[0]->getValue();
|
||||||
|
$row->getCells()[1]->getValue();
|
||||||
}
|
}
|
||||||
break; // no need to read more sheets
|
break; // no need to read more sheets
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user