str_getcsv
Parsing CSV strings into arrays
str_getcsv()
function parses a string of CSV format fields and returns an array containing the fields being read.
str_getcsv ( string , separator , enclosure , escape )
parameter | describe |
---|---|
string | Required. Specifies the string to be parsed. |
separator | Optional. Character, specify the field separator (only one character is allowed). The default value is comma ( , ). |
enclosure | Optional. Character, defines the field wrapping characters. The default value is double quotes ( " ). |
escape | Optional. Character, specify escape characters. The default is backslash (\). |