Arrays
in package
Table of Contents
Methods
- fromCSV() : array<string|int, array<string|int, string>>|bool
- Load a CSV file into an associative array
Methods
fromCSV()
Load a CSV file into an associative array
public
static fromCSV(string $path[, bool $firstRowLabels = true ]) : array<string|int, array<string|int, string>>|bool
Parameters
- $path : string
-
Path to the CSV file
- $firstRowLabels : bool = true
-
(Optional, default
TRUE
)
Return values
array<string|int, array<string|int, string>>|bool —A two-dimensional array of string values, if the
$field
contains a CSV file, FALSE
if there is no file