array csv_to_array(
string
$filename)
|
|
Reads a CSV-file into an array. The first line of the CSV-file should contain the array-keys.
Example: FirstName;LastName;Email John;Doe;john.doe@mail.com Adam;Adams;adam@mail.com returns $result [0]['FirstName'] = 'John'; $result [0]['LastName'] = 'Doe'; $result [0]['Email'] = 'john.doe@mail. com'; $result [1]['FirstName'] = 'Adam'; ...
Tags:
Parameters: