CsvHelper
in package
FinalYes
CSV Utility.
Table of Contents
Methods
Methods
putRow()
Put row.
public
static putRow(string $filePath, array<string|int, mixed> $row) : void
Parameters
- $filePath : string
-
CSV file path.
- $row : array<string|int, mixed>
-
An array of fields.
read()
Read the CSV.
public
static read(string $filePath[, callable|null $callback = null ]) : array<string|int, mixed>|null
Parameters
- $filePath : string
-
CSV file path.
- $callback : callable|null = null
-
Receives the rows to be registered in the result set and modifies the rows if necessary.
Return values
array<string|int, mixed>|null —List of rows.