PHP str_getcsv() Functie
❮ Referentie voor PHP-tekenreeksen
Definitie en gebruik
De functie str_getcsv() ontleedt een tekenreeks voor velden in CSV-indeling en retourneert een array met de gelezen velden.
Syntaxis
str_getcsv(string,separator,enclosure,escape)
Parameterwaarden
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 (\) |
Technische details
Winstwaarde: | Retourneert de CSV-velden in een array |
---|---|
PHP-versie: | 5.3.0+ |
❮ Referentie voor PHP-tekenreeksen