php - Laravel Excel: how to get value of a cell? -
i've loaded .xls
file laravel excel:
excel::load('public/files/20160621.xls', function($reader) { // read cell value });
how read values of cells of loaded excel file? documentation seems unclear on part.
public function get() { $excelfile ... return excel::load($excelfile, function($doc) { $sheet = $doc->getsheetbyname('data'); // sheet name data, can use sheet indexes. $sheet->getcell('a1'); $sheet->getcellbycolumnandrow(0,0); }); }
you're right, documentation read cells unclear. hope you.
Comments
Post a Comment