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

Vtiful\Kernel\Excel::constMemory

PHP function Edit on GitHub ✎

(PECL xlswriter >= 1.2.1)

Vtiful\Kernel\Excel constMemory

Description

Vtiful\Kernel\Excel::constMemory(string $fileName, [string $sheetName])

Write a large file with constant memory usage.

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->constMemory('tutorial.xlsx', 'sheet');
?>

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