自动过滤

函数原型

1
autoFilter(string $range): self
Copied!

string $range

筛选/过滤 数据范围

示例

1
$config = ['path' => './tests'];
2
$excel = new \Vtiful\Kernel\Excel($config);
3
4
$filePath = $excel->fileName("tutorial.xlsx")
5
->header(['name', 'age'])
6
->data([
7
['one', 10],
8
['two', 20],
9
['three', 30],
10
])
11
->autoFilter("A1:B3") // 添加 过滤/筛选
12
->output();
Copied!
Last modified 2yr ago