delboy1978uk / csv
Converts a CSV file to either an SPL Array Object or just a plain array
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/delboy1978uk/csv
This package is auto-updated.
Last update: 2025-10-05 00:09:07 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