RSS

Monthly Archives: December 2013

Generate Excel Data in PHP

Create Excel

Create Excel

<?php
header("Content-Type: application/xls");
header("Content-disposition: attachment; filename=data.xls");
echo 'Id' . "\t" . 'Item' . "\t" . 'Qty' . "\n";
echo '001' . "\t" . 'Compaq 610 laptop' . "\t" . '02' . "\n";
?>
 
1 Comment

Posted by on December 21, 2013 in PHP

 

Tags: