(PHP 5 >= 5.3.0)
str_getcsv — Parse a CSV string into an array
Similar to fgetcsv() this functions parses a string as its input unlike fgetcsv() which takes a file as its input.
The string to parse.
Set the field delimiter (one character only).
Set the field enclosure character (one character only).
Set the escape character (one character only). Defaults as a backslash (\)
Returns an indexed array containing the fields read.