str_getcsv
(PHP 5 >= 5.3.0)
str_getcsv —
Parse a CSV string into an array
Описание
array str_getcsv
( string $input
[, string $delimiter
[, string $enclosure
[, string $escape
]]] )
Список параметров
-
input
-
The string to parse.
-
delimiter
-
Set the field delimiter (one character only). Defaults as a comma.
-
enclosure
-
Set the field enclosure character (one character only). Defaults as a
double quotation mark.
-
escape
-
Set the escape character (one character only). Defaults as a backslash
(\)
Возвращаемые значения
Returns an indexed array containing the fields read.
Смотрите также
- fgetcsv() - Читает строку из файла и производит разбор данных CSV