File path: dist/twist/Core/Utilities/CSV.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
Type: Utility
CSV
— Simply Create, Serve and Import CSV files. Create a CSV file from and array of data, database query results can be directly exported as a CSV file with. Import CSV files into a usable indexed array of data.
<?php
//Set the variables for the example
$arrData = array(0 => 'foo', 1 => 'bar');
$strDelimiter = ';
$strEnclosure = '"';
//Call the function generateCSV with the example vars
Twist::CSV() -> generateCSV($arrData, $strDelimiter, $strEnclosure);
Method | Access | Returns |
---|---|---|
export | public | void |
serve | public | void |
generateCSV | protected | void |
import | public | void |