chrisullyott/php-csv
Composer 安装命令:
composer require chrisullyott/php-csv
包简介
CSV-to-array conversion in PHP.
README 文档
README
CSV-to-array conversion in PHP.
Installation
With Composer:
$ composer require chrisullyott/php-csv
Usage
| 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
)
)
统计信息
- 总下载量: 71
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-24