Home > Article > Backend Development > PHP array generate CSV file
A very simple function that generates a .csv file from a PHP array. This function generates a comma-delimited file (.CSV) using the fputcsv PHP built-in function. This function has 3 parameters: data, delimiter and CSV enclosure. The default is double quotes.
|