fputcsv
Add new row in CSV using PHP
I want to append form data in a CSV file that is stored on the server, the data should be added as a new row.
I tried
Forcing fputcsv to Use Enclosure For *all* Fields
When I use fputcsv to write out a line to an open file handle, PHP will add an enclosing character to any column that it believes needs it, but will leave other columns without the enclosures.