php
getSheet(0);
$highestRow = $sheet->getHighestDataRow();
$highestColumn = $sheet->getHighestDataColumn();
$dataArray = array();
for ($row = 1; $row <= $highestRow; $row++) {
$rowData = array();
for ($col = 'A'; $col <= $highestColumn; $col++) {
$value = $sheet->getCell($col . $row)->getValue();
$rowData[] = $value;
}
$dataArray[] = $rowData;
}
print_r($dataArray);
?>
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-