Current Location: Home> Function Categories> str_getcsv

str_getcsv

Parsing CSV strings into arrays
Name:str_getcsv
Category:String
Programming Language:php
One-line Description:Parses the CSV string into an array.

Definition and usage

str_getcsv() function parses a string of CSV format fields and returns an array containing the fields being read.

grammar

 str_getcsv ( string , separator , enclosure , escape )
parameter describe
string Required. Specifies the string to be parsed.
separator Optional. Character, specify the field separator (only one character is allowed). The default value is comma ( , ).
enclosure Optional. Character, defines the field wrapping characters. The default value is double quotes ( " ).
escape Optional. Character, specify escape characters. The default is backslash (\).
Similar Functions
Popular Articles