From: Vincent Vanwaelscappel Date: Thu, 24 Nov 2022 15:56:35 +0000 (+0100) Subject: wip #5026 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0738604654f3a55b93b82538939b6771f472967a;p=cubist_excel.git wip #5026 @0.25 --- 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);