str_getcsv() 函数解析 CSV 格式字段的字符串,并返回包含读取字段的数组。
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 (\) |
返回值: | 返回数组中的 CSV 字段 |
---|---|
PHP 版本: | 5.3.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!