PHP str_getcsv() Funkcja
Definicja i użycie
Funkcja str_getcsv() analizuje ciąg dla pól w formacie CSV i zwraca tablicę zawierającą odczytane pola.
Składnia
str_getcsv(string,separator,enclosure,escape)
Wartości parametrów
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 (\) |
Szczegóły techniczne
Wartość zwrotu: | Zwraca pola CSV w tablicy |
---|---|
Wersja PHP: | 5.3.0+ |
❮ Odniesienie do ciągów PHP