csv.class.php
Manage CVS data, enclosed with 'single quotes' and separated by commas, for example
'name','surname','company'
'John','Doe','Editor'
Usage:
{{lang:php}}
// INITIALIZATION
$csv = new csv($filename); // $filename is optional
$csv->load($filename); // gets data from file into $csv->data
print_r($csv->data);
$csv->save(); // returns $csv->data as CSV formatted string
$csv->show(); // outputs CSV formatted string with headers