PHP Class Pop\Data\Type\Csv

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Data\Type\TypeInterface
Show file Open project: nicksagona/PopPHP Class Usage Examples

Public Methods

Method Description
decode ( string $data, string $delim = ',', string $esc = '"' ) : mixed Decode the data into PHP.
encode ( mixed $data, mixed $omit = null, string $delim = ',', string $esc = '"', string $dt = null ) : string Encode the data into its native format.

Method Details

decode() public static method

Decode the data into PHP.
public static decode ( string $data, string $delim = ',', string $esc = '"' ) : mixed
$data string
$delim string
$esc string
return mixed

encode() public static method

Encode the data into its native format.
public static encode ( mixed $data, mixed $omit = null, string $delim = ',', string $esc = '"', string $dt = null ) : string
$data mixed
$omit mixed
$delim string
$esc string
$dt string
return string