Easy Tutorial
❮ Func Simplexml Getnamespaces Pdostatement Bindvalue ❯

PHP str_getcsv() Function

PHP String Reference Manual


Definition and Usage

The str_getcsv() function parses a string formatted as CSV fields and returns an array containing the read fields.


Syntax

Parameter Description
string Required. Specifies the string to parse.
separator Optional. Sets the field delimiter (only one character allowed), default is a comma ( , ).
enclosure Optional. Sets the field enclosure character (only one character allowed), default is a double quotation mark ( " ).
escape Optional. Sets the escape character (only one character allowed), default is a backslash ( \ ).

Technical Details

Return Value: Returns the CSV fields as an array.
PHP Version: 5.3.0+
--- ---
❮ Func Simplexml Getnamespaces Pdostatement Bindvalue ❯