Create Excel file using PHP Codeigniter

前端 未结 1 778
挽巷
挽巷 2021-02-11 02:53

I want to create a simple excel file with two rows. example:

order id | Name | Address | Quantity | Price | Total
    1    | XXXX | YYYYYYY |     10   |  700  |         


        
相关标签:
1条回答
  • 2021-02-11 03:27

    See this tutorial:

    • http://devzone.zend.com/27/reading-and-writing-spreadsheets-with-php/

    Here's a small (2.7 KB zipped) library to export XLS:

    • http://code.google.com/p/phpexportxlsclass/downloads/detail?name=export-xls.class-v1.01.zip

    Here's a similar one to export XLSX (4.4 KB zipped):

    • http://code.google.com/p/php-excel/downloads/detail?name=php-excel-v1.1-20090910.zip&can=2&q=

    Both have small working examples.

    0 讨论(0)
提交回复
热议问题