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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -