Answers for "how-to-generate-an-xlsx-using-php"

PHP
0

how-to-generate-an-xlsx-using-php

$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;
Posted by: Guest on September-15-2021

Code answers related to "how-to-generate-an-xlsx-using-php"

Browse Popular Code Answers by Language