STR_GETCSV(3) 1 STR_GETCSV(3)
str_getcsv - Parse a CSV string into an array
SYNOPSIS
array str_getcsv (string $input, [string $delimiter = ","], [string $enclosure = '"'], [string $escape = ""])
DESCRIPTION
Parses a string input for fields in CSV format and returns an array containing the fields read.
PARAMETERS
o $input
- The string to parse.
o $delimiter
- Set the field delimiter (one character only).
o $enclosure
- Set the field enclosure character (one character only).
o $escape
- Set the escape character (one character only). Defaults as a backslash ( )
RETURN VALUES
Returns an indexed array containing the fields read.
SEE ALSO
fgetcsv(3).
PHP Documentation Group STR_GETCSV(3)