使用PHP Codeigniter创建Excel文件 [英] Create Excel file using PHP Codeigniter
本文介绍了使用PHP Codeigniter创建Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用两行创建一个简单的excel文件。
示例:
订单ID |名称|地址|数量|价格|总计
1 | XXXX | YYYYYYY | 10 | 700 | 7000
有没有任何轻量级库或一些代码片段,以便我可以轻松实现这一点。 >
解决方案
请参阅本教程:
这是一个导出XLS的小型(2.7 KB压缩)库: p>
这是一个类似的导出XLSX(4.4 KB压缩):
- $ a bref = =rel =nofollow> http://code.google.com/p/php-excel /downloads/detail?name=php-excel-v1.1-20090910.zip&can=2&q=
两者都有小的工作示例。
I want to create a simple excel file with two rows. example:
order id | Name | Address | Quantity | Price | Total
1 | XXXX | YYYYYYY | 10 | 700 | 7000
Is there any lightweight library or some code snippet so that I can easily achieve this.
解决方案
See this tutorial:
Here's a small (2.7 KB zipped) library to export XLS:
Here's a similar one to export XLSX (4.4 KB zipped):
Both have small working examples.
这篇关于使用PHP Codeigniter创建Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文