My csv export displaying html, how to get rid of?

后端 未结 3 849
悲&欢浪女
悲&欢浪女 2020-12-16 08:38

I\'ve seen this asked before and I am having trouble getting this to work properly after trying a number of solutions. The problem is I can\'t get my data to export into a c

3条回答
  •  旧巷少年郎
    2020-12-16 08:44

    Place, ob_end_clean(); before you output the csv.

    ob_end_clean() meaning: "Clean (erase) the output buffer and turn off output buffering" - PHP manual.

提交回复
热议问题