HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP String Reference : The str_getcsv() function parses a string for fields in CSV format and returns an array containing the fields read."
The str_getcsv() function parses a string for fields in CSV format and returns an array containing the fields read.
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 (\) |
Return Value: | Returns the CSV fields in an array |
---|---|
PHP Version: | 5.3.0+ |
❮ PHP String Reference