export data into Excel Php

How to export data into Excel documents in PHP?
Export data to Excel:
The fputcsv function can be used to write to a file using comma separated values.
It gets line from file pointer and parse for CSV fields.
This function is useful for inserting data from the database to a comma separated file which can be later opened in Excel.


Post a Comment