CsvFile
class CsvFile extends File
Properties
protected string | $path | File path. |
from File |
protected resource | $handle | File handle. |
from File |
protected string | $delimiter | Field delimiter. |
|
protected string | $enclosure | String enclosure character. |
|
protected string | $escape_char | Escape character. |
Methods
__construct(string $path = null, string $delimiter = ',', string $enclosure = '"', string $escape_char = '\\')
Create a new CSV file.
int
put(array $items)
Append a new row to the CSV file.
Details
at line 36
__construct(string $path = null, string $delimiter = ',', string $enclosure = '"', string $escape_char = '\\')
Create a new CSV file.
in
File at line 50
__destruct()
No description
in
File at line 58
delete()
Delete the file.
in
File at line 67
close()
Close the file.
in
File at line 83
string
getPath()
Returns the path to the file.
at line 49
int
put(array $items)
Append a new row to the CSV file.