9-14 3,054 views
<?php
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=csat.xls");
$str = "<table border=1><tr>";
$str .= "<th>id</th><th>name</th><th>data</th>";
$str .= "</tr>";
$str .= "<tr>";
$str .= "<td>1</td>";
$str .= "<td>ceshi</td>";
$str .= "<td>2015-09-14</td>";
$str .= "</tr>";
$str .= "</table>";
echo $str;
exit;