Skip to content
Advertisement

Add heading on export using fputcsv php

I am trying to export db rows using fputcsv() in csv file. how i can add heading on first, center align then columns then data my code works well without heading. I know there is many api’s but is this possible with in my code.

Here is my code:-

JavaScript

Advertisement

Answer

This worked for me.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement