File path: dist/twist/Core/Utilities/CSV.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
generateCSV
— Generate the CSV data from a multi-dimensional array of data, ability to use a custom delimiter and enclosure.
Name | Description |
---|---|
$arrData | n/a |
[$strDelimiter = '] | n/a |
[$strEnclosure = '"'] | n/a |
void — No return information has been documented for this function.
<?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);