Funkce PHP str_getcsv().
Definice a použití
Funkce str_getcsv() analyzuje řetězec pro pole ve formátu CSV a vrátí pole obsahující přečtená pole.
Syntax
str_getcsv(string,separator,enclosure,escape)
Hodnoty parametrů
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 (\) |
Technické údaje
Návratová hodnota: | Vrátí pole CSV v poli |
---|---|
Verze PHP: | 5.3.0+ |
❮ Odkaz na řetězec PHP