The str_getcsv() function parses a string for fields in CSV format and returns an array containing the fields read.
str_getcsv(
string,separator,enclosure,escape)
Parameter | Description |
---|---|
string | Required. Specifies the string to parse |
separator | Optional. A character that specifies the field separator. Default is comma ( , ) |
enclosure | Optional. A character that specifies the field enclosure character. Default is " |
escape | Optional. A character that specifies the escape character. Default is backslash (\) |
Return Value: | Returns the CSV fields in an array |
---|---|
PHP Version: | 5.3.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!