Skip to content

Simple PHP class to read a CSV file and return it as PHP array, JSON or HTML table

Notifications You must be signed in to change notification settings

uaibo/CSV-export-to-array-json-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CSV-export-to-array-json-table

Initialize
$csv = new Csv('data/your_file.csv');
or also specify the CSV delimiter:
$csv = new Csv('data/your_file.csv', ';');

Return Array

$csv->getAsArray();

Return Json

$csv->getAsJson();

Return HTML table

$csv->getAsHtmlTable();

About

Simple PHP class to read a CSV file and return it as PHP array, JSON or HTML table

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages