دالة 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