CsvFile
class CsvFile extendsFile
Properties
protectedstring | $path | File path. | from File |
protectedresource | $handle | File handle. | from File |
protectedstring | $delimiter | Field delimiter. | |
protectedstring | $enclosure | String enclosure character. | |
protectedstring | $escape_char | Escape character. |
Methods
__construct(string$path =null,string$delimiter =',',string$enclosure ='"',string$escape_char ='\\')
Create a new CSV file.
put(array$items)
Append a new row to the CSV file.
Details
at line36
__construct(string$path =null,string$delimiter =',',string$enclosure ='"',string$escape_char ='\\')
Create a new CSV file.
inFileat line50
__destruct()
inFileat line58
delete()
Delete the file.
inFileat line67
close()
Close the file.
inFileat line81
string
getPath()
Returns the path to the file.
at line49
put(array$items)
Append a new row to the CSV file.