mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +00:00
Output documentation
This commit is contained in:
@@ -270,14 +270,17 @@ class parseCSV {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate CSV based string for output
|
* Output
|
||||||
* @param filename if specified, headers and data will be output directly to browser as a downloable file
|
* Generate a CSV based string for output.
|
||||||
* @param data 2D array with data
|
*
|
||||||
* @param fields field names
|
* @access public
|
||||||
* @param delimiter delimiter used to separate data
|
* @param [string] $filename If specified, headers and data will be output directly to browser as a downloable file
|
||||||
* @return CSV data using delimiter of choice, or default
|
* @param [array] $data 2D array with data
|
||||||
|
* @param [array] $fields Field names
|
||||||
|
* @param [type] $delimiter delimiter used to separate data
|
||||||
|
* @return [string]
|
||||||
*/
|
*/
|
||||||
function output ($filename = null, $data = array(), $fields = array(), $delimiter = null) {
|
public function output ($filename = null, $data = array(), $fields = array(), $delimiter = null) {
|
||||||
if (empty($filename)) {
|
if (empty($filename)) {
|
||||||
$filename = $this->output_filename;
|
$filename = $this->output_filename;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user