Export to CSV via PHP

前端 未结 7 2369
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 06:14

Let\'s say I have a database.... is there a way I can export what I have from the database to a CSV file (and text file [if possible]) via PHP?

7条回答
  •  [愿得一人]
    2020-11-22 06:55

    pre-made code attached here. you can use it by just copying and pasting in your code:

    https://gist.github.com/umairidrees/8952054#file-php-save-db-table-as-csv

提交回复
热议问题