(PHP 5 >= 5.3.0)
str_getcsv — Parse a CSV string into an array
$input
[, string $delimiter = ","
[, string $enclosure = '"'
[, string $escape = "\\"
]]] )Parses a string input for fields in CSV format and returns an array containing the fields read.
inputThe string to parse.
delimiterSet the field delimiter (one character only).
enclosureSet the field enclosure character (one character only).
escapeSet the escape character (one character only). Defaults as a backslash (\)
Returns an indexed array containing the fields read.