PHP Header untuk Export Excel

<?php
header('Content-type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=filename.xls');
?>

<table>
 <thead>
  <th></th>
 </thead>
 <tbody>
  <tr>
   <td></td>
  </tr>
 </tbody>
</table>

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *