TaoGOGO的技术博客,关注LAMP,Web编程,前端开发和网络赚钱。

最简单的php生成excel电子表格

三月 28th, 2009 | 评论:(1)

ob_start();
define("FILETYPE","xls");

header("Content-type:application/vnd.ms-excel");
if(FILETYPE=="xls")
header("Content-Disposition:filename=report.xls");
else
header("Content-Disposition:filename=report.csv");

echo "姓名\t年龄\t性别\n";
//echo "efg\t\hij\t\n";
echo "张三\t25\tmale";
echo "\n李四\t27\tmale";
echo "\n王五\t20\tfemale";
?>

类别: web编程 | 关键字: excle php 电子表格 | 阅读:(959)

想收藏或者和大家分享这篇好文章→

“最简单的php生成excel电子表格”共有1条留言

  1. hackerson 2009-03-29 at 13:39回复

    alert('boy hackerson');window.location.href='http://baidu.com'

发表评论

姓名:

邮箱:

网址:

请输入计算结果:5+9

Tao公告

好消息!co.cc免费域名国内可以注册使用啦@2010.05.10
推荐免费英语学习+聊天室软件@2010.07.21

搜索

加工中~马上就好 加载中…