dev-master
9999999-dev https://github.com/chrisullyott/php-csvCSV-to-array conversion in PHP.
MIT
The Requires
- php >=5.3.0
v1.0.0
1.0.0.0 https://github.com/chrisullyott/php-csvCSV-to-array conversion in PHP.
MIT
The Requires
- php >=5.3.0
Wallogit.com
2017 © Pedro Peláez
CSV-to-array conversion in PHP.
CSV-to-array conversion in PHP., (*1)
With Composer:, (*2)
$ composer require chrisullyott/php-csv
| ID | First Name | Last Name |
|---|---|---|
| 15 | Ethan | Hunt |
| 16 | Jim | Phelps |
| 17 | Luther | Stickell |
$parser = new CsvParser('/path/to/data.csv');
$items = $parser->getItems();
print_r($items);
Array
(
[0] => Array
(
[id] => 15
[first_name] => Ethan
[last_name] => Hunt
)
[1] => Array
(
[id] => 16
[first_name] => Jim
[last_name] => Phelps
)
[2] => Array
(
[id] => 17
[first_name] => Luther
[last_name] => Stickell
)
)
CSV-to-array conversion in PHP.
MIT
CSV-to-array conversion in PHP.
MIT