Back to the module list

Output CSV (Comma Separated Value)

The output CSV allow to return the provided data to a CSV format. It define the headers to inform the browser of the format.

If the data are not an array, they are converted to an array to be compliant with CSV format.

The class definition

Class \outputcsv

Namespace \

Description

 Display in CSV the data provided

Properties

No property available

Methods

public function __construct ()
 Don't allow to output in CSV if the functions are not available in PHP

public function out ($data)
 Display in CSV the data provided
      @param mixed $data The data to be displayed