From 0738604654f3a55b93b82538939b6771f472967a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 24 Nov 2022 16:56:35 +0100 Subject: [PATCH] wip #5026 @0.25 --- src/ExcelToArray.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ExcelToArray.php b/src/ExcelToArray.php index 83e169a..55c218a 100644 --- a/src/ExcelToArray.php +++ b/src/ExcelToArray.php @@ -64,6 +64,13 @@ class ExcelToArray } } + public static function excelToArrayFirstSheet($file, $force = false) + { + $res = self::excelToArrayRaw($file, $force); + $res = array_shift($res); + return $res; + } + public static function excelToArrayRaw($file, $force = false) { return self::_excelToArray($file, false, $force); -- 2.39.5