Detailed Description

CSVUtil provides basic support for csv file functionality.

The first line of a csv file is supposed to hold the field names.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 19 of file CSVUtil.php.

Static Public Member Functions

static readCSVFile ($filename, $separator, $fielddelimiter)
 

Public Attributes

 $_fields = array()
 

Member Function Documentation

static readCSVFile (   $filename,
  $separator,
  $fielddelimiter 
)
static

Read a CSV file into an array.

Parameters
$filenameThe name of the CSV file
$separatorThe field separator used in the CSV file (e.g. \t)
$fielddelimiterThe field delimiter used in the CSV file (e.g. ")
Returns
An assoziative array with keys 'fields', 'values' where values is an array of arrays holding the values

Definition at line 31 of file CSVUtil.php.

Member Data Documentation

$_fields = array()

Definition at line 21 of file CSVUtil.php.