linuxnotes
生成excel文件,最简单的莫过于把数据库的数据导入到excel就行了。
生成excel 当然使用的是 phpExcel http://www.jbxue.com/tags/phpexcel.html 这个类库了,可是它太麻烦了,对于只要简单生成来说有点不值得 
什么叫简单,把数据库的数据导入到excel就行了, 这个就是简单了 
注意,双引号的字符串 
<?php 
header("Content-type:application/vnd.ms-excel"); 
header("Content-Disposition:filename=test.xls"); 
echo "test1\t"; 
echo "test2\t\n"; 
echo "test1\t"; // www.jbxue.com
echo "test2\t\n"; 
echo "test1\t"; 
echo "test2\t\n"; 
echo "test1\t"; 
echo "test2\t\n"; 
echo "test1\t"; 
echo "test2\t\n"; 
echo "test1\t"; 
echo "test2\t\n"; 
?> 

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2021-11-23
  • 2021-07-21
  • 2022-12-23
  • 2021-12-13
  • 2021-10-07
  • 2021-05-05
  • 2022-02-26
猜你喜欢
  • 2021-11-23
  • 2021-12-15
  • 2021-06-28
  • 2021-12-05
  • 2022-01-25
  • 2021-11-23
相关资源
相似解决方案