Answers for "php excel to array"

PHP
0

php excel to array

// I recommand using
// https://github.com/PHPOffice/PhpSpreadsheet

$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
// reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
$reader->setReadDataOnly(true);
$spreadsheet = $reader->load($inputFileName);

// Get the value from cell B5
$cellValue = $spreadsheet->getActiveSheet()->getCellByColumnAndRow(2, 5)->getValue();
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language