質問編集履歴
1
拡張子の判断箇所のソースは省く
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,17 +8,7 @@
|
|
8
8
|
|
9
9
|
$readFile = "./" . $convfilename;
|
10
10
|
|
11
|
-
if($extension == "xls"){
|
12
|
-
|
13
|
-
$objPExcel = PHPExcel_IOFactory::load($readFile);
|
14
|
-
|
15
|
-
}else{
|
16
|
-
|
17
|
-
|
11
|
+
$objPExcel = PHPExcel_IOFactory::createReader('Excel2007')->load($readFile);
|
18
|
-
|
19
|
-
}
|
20
|
-
|
21
|
-
return $objPExcel->getActiveSheet()->toArray(null, true, true, true);
|
22
12
|
|
23
13
|
```
|
24
14
|
|