MNB PHPExcelDeveloper Guide
Versions

Version 2.0.5 Documentation Notes

Use structured row-count fields to distinguish logical positions, source records, explicit and implicit empty rows, headers, skipped rows, and returned rows.

Updated

Core 2.0.5+Structured counts
Available sincev2.0.5Last API changev2.0.5Version guide
LevelAll levelsReading time6 minPackagemnb/mnb-phpexcel-core

What you will learn

  • Use the v2.0.5 row_counts summary correctly.
  • Keep legacy summary fields compatible.
  • Update Core through a new Composer tag.

Structured count fields#

PHP
$data = $session->toStructuredSheetArray([
    'header_row' => 1,
    'skip_empty_rows' => true,
]);

$counts = $data['summary']['row_counts'];

echo $counts['total'];
echo $counts['empty'];
echo $counts['skipped_empty'];
echo $counts['returned'];

Open the complete row-count guide →