(PHP 5 >= 5.1.0, PHP 7)
Format line as CSV and write to file pointer
int fputcsv ( resource $handle, array $fields [, string $delimiter = "," [, string $enclosure = '"' [, string $escape_char = "\" ]]] )
fputcsv() formats a line (passed as a fields array) as CSV and write it (terminated by a newline) to the specified file handle.
Parameters:
handle
The file pointer m