XLSWriter Vtiful\Kernel\Excel::data
(PECL xlswriter >= 1.2.1)
Vtiful\Kernel\Excel::data — Vtiful\Kernel\Excel data
설명
public Vtiful\Kernel\Excel::data(array $data
)
워크시트에 데이터를 씁니다.
매개변수
data
- worksheet data
반환 값
Vtiful\Kernel\Excel 인스턴스
Examples
예제 #1 예제
<?php
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$file = $fileObject->fileName('tutorial.xlsx', 'sheet_one')
->header(['name', 'age'])
->data([
['viest', 23],
['wjx', 23],
]);
?>