$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($file_path); $workSheet = $NamedRanges->getWorksheet(); $definedName = "xxxx"; //获取指定名称对应的数据 $range_array_data = $workSheet->namedRangeToArray($definedName);//当前返回值返回的是行列二维数组
Powered by: 博客园 Copyright © 2024 懒人ABC Powered by .NET 8.0 on Kubernetes