str_getcsv
str_getcsv
(PHP 5 >= 5.3.0, PHP 7)
str_getcsv — Parse a CSV string into an array
Description
array str_getcsv ( string $input [, string $delimiter = "," [, string $enclosure = '"' [, string $escape = "\\" ]]] )
Parses a string input for fields in CSV format and returns an array containing the fields read.
Parameters
-
input
-
The string to parse.
-
delimiter