kenowlee/csv-convert
Composer 安装命令:
composer require kenowlee/csv-convert
包简介
Convertendo CSV para Array
关键字:
README 文档
README
Convertendo arquivos csv para array
Como usar:
require 'src/Convert.php'; $results = Convert\CSV::toArray('/path-to-file/file.csv', ','); //Results array(2) { [0]=> string(14) "22637212000111" [1]=> string(6) "171665" } array(2) { [0]=> string(14) "52079369000112" [1]=> string(6) "172837" } array(2) { [0]=> string(14) "51055810000101" [1]=> string(6) "173288" } array(2) { [0]=> string(14) "12404336000148" [1]=> string(6) "138230" } array(2) { [0]=> string(14) "21675698000188" [1]=> string(6) "169931" } array(2) { [0]=> string(14) "99349416000441" [1]=> string(6) "172536" }
Parâmetros:
| Parâmetro | Tipo | Descrição |
|---|---|---|
file |
string |
Obrigatório. Arquivo CSV |
separator |
string |
Separador de coluna do CSV, Padrão ; |
Arquivo CSV Exemplo
22637212000111,171665 52079369000112,172837 51055810000101,173288 12404336000148,138230 21675698000188,169931 99349416000441,172536
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-23