str_getcsv( string $input, string $delimiter = ',', string $enclosure = '"', string $escape = '\' )
Input a text file name of a comma separated file, and parse it, returning the data as an array
Description #
Parameters #
- $input
-
(string) (Required) File name.
- $delimiter
-
(string) (Optional) Delimiter.
Default value: ','
- $enclosure
-
(string) (Optional) Enclosure.
Default value: '"'
- $escape
-
(string) (Optional) Escape.
Default value: '\'
Return #
(array) Array of strings that are parsed as comma separated values
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |