SaveTo()
SaveTo( $array, $path, $project = null, $encoding = "utf8") : boolean
Save array collection as a csv file.
Parameters
$array | ||
$path | ||
$project | ||
$encoding |
Returns
boolean —True for file save success, and false not.
The csv file I/O extensions
Load(string $path, $tsv = false, $maxLen = 2048, string $encoding = "utf8") : array
Parse target csv file to an object array.
string | $path | The |
$tsv | ||
$maxLen | ||
string | $encoding | The file content encoding. |
An array of object that read from the given csv file.