csv

Constructs a string from the elements of the array where the values are separated by commas. Optionally, the separator and quote strings can be specified. The default separator is a comma ( , ) and the default quote character is a single quote ( ' ).

Syntax

csv ( array_expression [ , separator_string [ , quote_string ] ] )

Example

# csv ( array ( 'a1' , 'a2' ) ) #

Result

'a1', 'a2'