<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
$date = date("YmdHis");
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=名称$date.xls");
header("Content-Type: application/vnd.ms-excel; charset=UTF-8");
?>
<table cellpadding="0" cellspacing="0">
<thead>
<th>序号</th>
</thead>
<tbody>
<tr>
<td>这里是输出的内容</td>
</tr>
</tbody>