+ 3

How to read the values from excel sheet in PHP and store them in variables or arrays?

I want to take excel sheet from user through HTML form and then in PHP read the excel sheet and store its value in an array. Please explain me how to do so. Also I tried using PHPExcel and SimpleXLSX but it gave no result and I also tried using phpspreadsheet or phpexcelmaker but it gives result only for .xls files and not for .xlsx files. I want the code to give result for both .xls and .xlsx files.

5th Jul 2019, 6:52 PM
Chetali Shah
Chetali Shah - avatar
3 Answers
+ 5
Better use csv format instead. It is in text format. Convert excel to csv...
12th Jul 2019, 2:28 AM
Da2
Da2 - avatar
- 2
mir
14th Jul 2019, 3:07 PM
Mir Hossin
Mir Hossin - avatar
- 2
hossin
14th Jul 2019, 3:07 PM
Mir Hossin
Mir Hossin - avatar