getSheetByName('Export Rate'); echo "=== Export Rate full structure ===" . PHP_EOL; for ($row = 1; $row <= 15; $row++) { $rowData = $sheet->rangeToArray("A{$row}:L{$row}")[0]; echo "Row $row: " . implode(' | ', array_map(function($cell) { return $cell === null ? '(null)' : $cell; }, $rowData)) . PHP_EOL; } echo PHP_EOL . "=== Import Rate full structure ===" . PHP_EOL; $sheet = $spreadsheet->getSheetByName('Import Rate'); for ($row = 1; $row <= 15; $row++) { $rowData = $sheet->rangeToArray("A{$row}:K{$row}")[0]; echo "Row $row: " . implode(' | ', array_map(function($cell) { return $cell === null ? '(null)' : $cell; }, $rowData)) . PHP_EOL; }