M
M
m1rvi2020-12-08 18:22:09
PHP
m1rvi, 2020-12-08 18:22:09

How to export excel sheet to PHP associative array?

How to make it so that
when loading an excel file into the input,
a sheet is taken from it
and pumped to the assoc. php array?

phpspreadsheet

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Nikolaev, 2020-12-08
@m1rvi

$spreadsheet = PhpSpreadsheet\IOFactory::load( 'list.xls' );
$rows = $spreadsheet->getActiveSheet()->toArray();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question