php8.5
Home/ Manual/ xlswriter / xlsx-kernel/ Vtiful\Kernel\Excel::fileName

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

fileName

XLSX file name

sheetName

Worksheet 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');
?>

Source: reference/xlswriter/xlsx-kernel/file-name.xml · from the official PHP manual (php/doc-en)