- Date: August 13, 2014
- Author: Jaime A. Rodriguez [email protected]
- Version: 1.9
- License: http://opensource.org/licenses/MIT
Creates a Comma Separated Value file.
$c = new \Module\CSV\Document();
$c->add(array(
'George',
'Washington'
));
$c->save('presidents.csv');
$c = new \Module\CSV\Document('presidents.csv');
$c->add(array(
'Abraham',
'Lincoln'
));
$c->save();
$c = new \Module\CSV\Document('presidents.csv');
$results = $c->search("Abraham");
foreach ($results as $r) { // This is an array of arrays, each is a row
print_r($r); // This will be an array of data, each is a column
}