我已经用 Laravel Excel 加载了 .xls
文件:
Excel::load('public/files/20160621.xls', function($reader) {
// read a cell value
});
如何读取加载的 excel 文件的单元格值?该部分的文档似乎不清楚。
最佳答案
public function get()
{
$excelFile ...
return Excel::load($excelFile, function($doc) {
$sheet = $doc->getSheetByName('data'); // sheet with name data, but you can also use sheet indexes.
$sheet->getCell('A1');
$sheet->getCellByColumnAndRow(0,0);
});
}
你是对的,读取某些单元格的文档不清楚。 希望这对您有所帮助。
关于php - 拉维Excel : how to get value of a cell?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38074802/