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 फ़ील्ड को एक सरणी में लौटाता है |
---|---|
पीएचपी संस्करण: | 5.3.0+ |
❮ पीएचपी स्ट्रिंग संदर्भ