PHP导出excel表格

<?php
header('Content-Type: application/force-download');
header("Content-type: text/html; charset=utf-8");
header('Content-Disposition: attachment; filename=租赁成交记录导出-'.date('y-m-d').'.xls');
echo '<table>
<tr>
<td>abc</td>
<td>123</td>
</tr>
<tr>
<td>qwe</td>
<td>456</td>
</tr>
</table>
';
?>
上一篇:Sql Express数据备份和还原


下一篇:Spring集成CXF发布WebService并在客户端调用