PHP str_getcsv() 함수
정의 및 사용
str_getcsv() 함수는 CSV 형식의 필드 문자열을 구문 분석하고 읽은 필드가 포함된 배열을 반환합니다.
통사론
str_getcsv(string,separator,enclosure,escape)
매개변수 값
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 (\) |
기술적 세부 사항
반환 값: | 배열의 CSV 필드를 반환합니다. |
---|---|
PHP 버전: | 5.3.0+ |
❮ PHP 문자열 참조