2017 © Pedro Peláez
 

library csv-to-associative-array

CVS to associative array

image

rap2hpoutre/csv-to-associative-array

CVS to associative array

  • Thursday, November 24, 2016
  • by rap2hpoutre
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,975 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

CSV to associative array

This package only contains a 587 bytes function: csv_to_associative_array., (*1)

What?

Get your CSV file as an associative array. From this:, (*2)

name,email
raphael,raphael@example.org
lisa,lisa@example.org

To this:, (*3)

[ 
  ['name' => 'raphael', 'email' => 'raphael@example.org'], 
  ['name' => 'lisa',    'email' => 'lisa@example.org'] 
]

How?

Install via composer, (*4)

composer require rap2hpoutre/csv-to-associative-array

Use, (*5)

$content = \Rap2hpoutre\Csv\csv_to_associative_array('path/to/csv/file.csv');

The Versions

24/11 2016

dev-master

9999999-dev https://github.com/rap2hpoutre/csv-to-associative-array

CVS to associative array

  Sources   Download

MIT

csv array

09/06 2016

v0.0.3

0.0.3.0 https://github.com/rap2hpoutre/csv-to-associative-array

CVS to associative array

  Sources   Download

MIT

csv array

09/06 2016

v0.0.2

0.0.2.0 https://github.com/rap2hpoutre/csv-to-associative-array

CVS to associative array

  Sources   Download

MIT

csv array

09/06 2016

v0.0.1

0.0.1.0 https://github.com/rap2hpoutre/csv-to-associative-array

CVS to associative array

  Sources   Download

MIT

csv array