myPortal CMS - the web design community
  • MyPortal 2.0
  • download
  • demo
  • manual
  • editor
  • faq
  • blog
  • forum

free account: Click here
Username: Password:

Manual

csv.class.php

Manage CVS data, enclosed with 'single quotes' and separated by commas, for example

'name','surname','company'

'John','Doe','Editor'

Usage:

// 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

Try myPortal 2: