读取富文本
函数原型
nextRowRich(): ?array返回值
示例
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->openFile('source.xlsx')->openSheet();
while (($row = $excel->nextRowRich()) !== null) {
print_r($row);
}
// 一行示例:
// Array
// (
// [0] => Array
// (
// [0] => Array
// (
// [text] => Hello
// [font] => Array ( [name] => Calibri [size] => 11 [bold] => 1 [italic] => 0 ... )
// )
// [1] => Array ( [text] => world, [font] => Array (...) )
// )
// [1] => 42 // 数字单元格保持原值
// )Last updated