Class Document
Creates a Comma Separated Value file.
Usage
// loads a existing CSV file $c = new \Module\CSV\Document('presidents.csv'); $c->add(array( 'George', 'Washington' )); $c->save();
Changelog
Version 1.8
- Added namespacing
- Renamed remove method to delete
- Added a search method
Version 1.6
- Updated documentation
Version 1.5
- check if we can remove the header before doing it... teamsite issue.
- suppress flock warnings... teamsite issue
Namespace: Module\CSV
License: http://opensource.org/licenses/MIT
Author: Jaime A. Rodriguez hi.i.am.jaime@gmail.com
Version: 1.8
Date: August 13, 2014
Located at class.csv.php
License: http://opensource.org/licenses/MIT
Author: Jaime A. Rodriguez hi.i.am.jaime@gmail.com
Version: 1.8
Date: August 13, 2014
Located at class.csv.php
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
|
public
string
|
$filename
string The filename of the CSV file |
#
''
|
public
string
|
$delimiter
string Define what character to use as a delimiter |
#
','
|
public
|
$data
mixed The data gets stored here while "in utero" |