There is no license information available for the latest version (v1.0) of this package.

Converts a CSV file to either an SPL Array Object or just a plain array

v1.0 2015-06-04 08:49 UTC

This package is auto-updated.

Last update: 2024-11-04 22:01:15 UTC


README

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