php保存excel xls格式文件
2016 年 12 月 13 日
没有评论
<?php
header(“Content-type: application/vnd.ms-excel; charset=utf-8″);
header(“Content-Disposition: attachment; filename=123.xls”);
header(“Content-type: application/vnd.ms-excel; charset=utf-8″);
header(“Content-Disposition: attachment; filename=123.xls”);
$data = ’1′ . “\t\n”;
$data .= ’3′. “\t” . ’4′ . “\t” .’555′ . “\t” . ’222′ . “\n”;
echo $data . “\t”;
exit;
?>
$data .= ’3′. “\t” . ’4′ . “\t” .’555′ . “\t” . ’222′ . “\n”;
echo $data . “\t”;
exit;
?>