PHP str_getcsv() 函数
PHP 教程
· 2019-01-29 22:28:42
定义和用法
str_getcsv() 函数解析 CSV 格式字段的字符串,并返回一个包含所读取字段的数组。
语法
str_getcsv(string,separator,enclosure,escape)
| 参数 | 描述 |
|---|---|
| string | 必需。规定要解析的字符串。 |
| separator | 可选。设置字段分界符(只允许一个字符),默认值为逗号( , )。 |
| enclosure | 可选。设置字段环绕符(只允许一个字符),默认值为双引号( " )。 |
| escape | 可选。设置转义字符(只允许一个字符),默认值为反斜线( \ )。 |
技术细节
| 返回值: | 以数组形式返回 CSV 字段。 |
|---|---|
| PHP 版本: | 5.3.0+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Dive Into Python
Mark Pilgrim / Apress / 2004-11-5 / GBP 31.49
Python is a new and innovative scripting language. It is set to replace Perl as the programming language of choice for shell scripters, and for serious application developers who want a feature-rich, ......一起来看看 《Dive Into Python》 这本书的介绍吧!