Vtiful\Kernel\Excel::fileName
PHP function
Edit on GitHub ✎
(PECL xlswriter >= 1.2.1)
Vtiful\Kernel\Excel fileName
Description
Vtiful\Kernel\Excel::fileName(string $fileName, [string $sheetName])
Create a brand new xlsx file and create a worksheet.
Parameters
fileNameXLSX file name
sheetNameWorksheet name
Return Values
Vtiful\Kernel\Excel instance
Examples
example
php
<?php
$config = [
'path' => '/home/viest'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$file = $fileObject->fileName('tutorial.xlsx', 'sheet');
?>