📌  相关文章
📜  如何生成an-xlsx-using-php 代码示例

📅  最后修改于: 2022-03-11 14:54:44.500000             🧑  作者: Mango

代码示例1
$file = "test.csv";
 header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
 header('Content-Disposition: attachment; filename='.$file);
 $content = "Col1,Col2,Col3\n";
 $content .= "test1,test1,test3\n";
 $content .= "testtest,ttesttest2,testtest3\n";
 echo $content;