TableFactory
in package
Table factory class
Table of Contents
Methods
- createFromArray() : Table|null
- Create form array
- loadCsv() : Table|null
Methods
createFromArray()
Create form array
public
static createFromArray(array<string|int, mixed> $rows[, array<string|int, mixed>|null $header = null ]) : Table|null
Parameters
- $rows : array<string|int, mixed>
- $header : array<string|int, mixed>|null = null
Return values
Table|nullloadCsv()
public
static loadCsv(string $fileName[, string $separator = ',' ]) : Table|null
Parameters
- $fileName : string
- $separator : string = ','