----------------------------
excel functions
----------------------------
将下面的代码存为excel.php ,然后在页面中包括进来
然后调用
1. call xlsbof()
2. 将一些内容写入到xlswritenunber() 或者 xlswritelabel()中.
3.然后调用 call xlseof()
也可以用 fwrite 函数直接写到服务器上,而不是用echo 仅仅在浏览器上显示。
//
// to display the contents directly in a mime compatible browser
// add the following lines on top of your php file:
以上就介绍了如何使用php生成excel文档,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
