如何用PHP读取.xls文件(Excel)? [英] How can i read .xls files (Excel) with PHP?

查看:119
本文介绍了如何用PHP读取.xls文件(Excel)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将.xls文件转换为文本,我不需要以任何方式格式化。
该文件填充像PN-5098P的产品,我将preg_match_all得到。

I need to convert an .xls file to text, i dont need it formatted in any way. The file is filled with productids like PN-5098P, which i will preg_match_all to get.

最简单的解决方案是什么?
我只是在一个常规的texteditor中打开文件,ids不显示,所以我想我需要一些二进制转换器?

What is the simplest solution? I tried simply opening the file in a regular texteditor, the ids are not showing, so i guess i need some kind of binary converter?

推荐答案

这是一个很好的开始:

https://code.google.com/p/php-excel-reader/

这篇关于如何用PHP读取.xls文件(Excel)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆