Excel 表
函数原型
\Vtiful\Kernel\Excel::addTable(string $rangeA1, ?\Vtiful\Kernel\Table $opts = null): selfstring $rangeA1
?Table $opts
子章节
示例
Last updated
$config = ['path' => './'];
$excel = new \Vtiful\Kernel\Excel($config);
$table = new \Vtiful\Kernel\Table();
$table->name('Performance')
->style(\Vtiful\Kernel\Table::STYLE_TYPE_LIGHT, 11)
->columns([
['header' => 'Name'],
['header' => 'Score'],
]);
$excel->fileName('tutorial.xlsx')
->data([
['Alice', 90],
['Bob', 80],
])
->addTable('A1:B3', $table)
->output();