锁定保护
函数原型
protection(?string $password = null): selfstring $password
子章节
示例
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial.xlsx')
->header(['name', 'age'])
->data([
['viest', 21],
['wjx', 21]
])
->protection('viest') // 设置密码为 viest
->output();Last updated