fputcsv is a PHP function that formats a line (passed as a fields array) as CSV and writes it (terminated by a newline) to the specified file handle. `fputcsv` support started with PHP version 5.1.0.
Questions tagged [fputcsv]
354 questions
1
vote
1 answer
CSV is not creating and downloading in browser - PHP
I have array of data whom I want to create CSV file and want to download it in my browser. I am creating it using Ajax call.
Here is my Ajax code: