fputcsv

  • (PHP 5 >= 5.1.0, PHP 7)
  • Format line as CSV and write to file pointer