0
if ($file_extension == "xlsx") {
include("excel/PHPExcel.php");
include("excel/Excel2007.php");
$objPHPExcel = PHPExcel_IOFactory::load($_FILES['filename']['tmp_name']);
$sheetData = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true);
foreach($sheetData as $row) {
//// How to put all cells in array in one shot because we can not assign each like $row['A'] ,$row['B']
array_push($array, strval($row['A']));
//row A2;
//array_push($array,strval($row['B']));
//etc...
}
}
각 셀을 이름을 지정하지 않고 배열에 넣는 방법은 무엇입니까?어레이의 데이터를 한 번에 밀어 넣는 방법
쓰기가 매우 어렵 기 때문에 $row['A']
, $row['B']
, $row['C']
......을 각각 작성해야합니다.
행의 이름을 지정하지 않고 모든 데이터를 배열에 넣는 방법은 무엇입니까?