sscanf
str_ireplace
String Functions
PHP Manual

# str_getcsv

(PHP 5 >= 5.3.0)

str_getcsv — Parse a CSV string into an array

### Descripción

array str_getcsv ( string `$input` [, string `$delimiter` [, string `$enclosure` [, string `$escape` ]]] )

Similar to fgetcsv() this functions parses a string as its input unlike fgetcsv() which takes a file as its input.

### Lista de parámetros

`input`

  The string to parse.

`delimiter`

  Set the field delimiter (one character only). Defaults as a comma.

`enclosure`

  Set the field enclosure character (one character only). Defaults as a double quotation mark.

`escape`

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

### Valores retornados

Returns an indexed array containing the fields read.

### Ver también

- fgetcsv() - Obtiene una linea del archivo apuntado y extrae los campos CSV

sscanf
str_ireplace
String Functions
PHP Manual