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