File path: dist/twist/Core/Utilities/CSV.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
export
— Create a CSV file on the server, pass in a multi-dimensional array of data containing keys and values, the keys will be used as the field names and the values will be each for in the CSV. By default the Delimiter, Enclosure and Escape are already set.
Name | Description |
---|---|
$strLocalFile | n/a |
$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
$strLocalFile = 'foo';
$arrData = array(0 => 'foo', 1 => 'bar');
$strDelimiter = ';
$strEnclosure = '"';
//Call the function export with the example vars
Twist::CSV() -> export($strLocalFile, $arrData, $strDelimiter, $strEnclosure);