Skip to content

delboy1978uk/csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

csv

PHP Static Class which converts a CSV file to either an SPL Array Object or just a plain array Installation

Insert the following into your composer.json

"delboy1978uk/csv":"v1.0"

Usage

use Del\Csv;

Csv::toArray($filename,$array_object = true);

You must supply a filename. Throws an Exception on not finding the file. If you pass true(default second param, you don't need to) then it will return an ArrayObject If you pass false then a plain PHP array will be returned

About

PHP Static Class which converts a CSV file to an Array Object

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages