PK!A7��ngetActiveSheet(); $highestRow = $worksheet->getHighestRow(); $highestColumn = $worksheet->getHighestColumn(); $data = array(); for ($row = 1; $row <= $highestRow; $row++) { $rowData = array(); for ($col = 'A'; $col <= $highestColumn; $col++) { $cellValue = $worksheet->getCell($col . $row)->getValue(); $rowData[] = $cellValue; } $data[] = $rowData; } return $data; } // Provide the path to your .xlsx file $filePath = '9.xlsx'; // Parse the .xlsx file $parsedData = parseXlsxFile($filePath); foreach ($parsedData as $row) { echo implode("\t", $row) . "\n"; }