downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

str_ireplace> <sscanf
[edit] Last updated: Fri, 24 May 2013

view this page in

str_getcsv

(PHP 5 >= 5.3.0)

str_getcsv Parse a CSV string into an array

Descrierea

array str_getcsv ( string $input [, string $delimiter = ',' [, string $enclosure = '"' [, string $escape = '\\' ]]] )

Parses a string input for fields in CSV format and returns an array containing the fields read.

Parametri

input

The string to parse.

delimiter

Set the field delimiter (one character only).

enclosure

Set the field enclosure character (one character only).

escape

Set the escape character (one character only). Defaults as a backslash (\)

Valorile întoarse

Returns an indexed array containing the fields read.

Vedeți de asemenea

  • fgetcsv() - Gets line from file pointer and parse for CSV fields



str_ireplace> <sscanf
[edit] Last updated: Fri, 24 May 2013
 
add a note add a note User Contributed Notes str_getcsv - [29 notes]