diff --git a/docs/topics/Looping the Loop.md b/docs/topics/Looping the Loop.md index 046db3a13f..09fefe67ff 100644 --- a/docs/topics/Looping the Loop.md +++ b/docs/topics/Looping the Loop.md @@ -16,7 +16,7 @@ $inputFileName = __DIR__ . '/../Financial Sample.xlsx'; $reader = IOFactory::createReader($inputFileType); $spreadsheet = $reader->load($inputFileName); - +$worksheet = $spreadsheet->getActiveSheet(); $dataArray = $worksheet->toArray();