如何使用PHP读取.xls文件(Excel) ?
16lz
2021-01-22
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.
我需要将.xls文件转换为文本,我不需要以任何方式格式化它。文件中填充了productids,如PN-5098P,我将preg_match_all获取它。
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?
最简单的解是什么?我试着在一个普通的texteditor中打开文件,id没有显示,所以我想我需要某种二进制转换器?
4 个解决方案
#1
14
This is a good start:
这是一个良好的开端:
http://code.google.com/p/php-excel-reader/
http://code.google.com/p/php-excel-reader/
更多相关文章
- 解决Apache2+PHP上传文件大小限制的问题技术集锦
- 上传文件时通过AJAX更新列表
- 如何防止.htaccess重定向中的一个文件?
- 使用mod_rewrite将文件夹转换为查询字符串
- PHP上传文件 Error 6解决方法
- 使用.php文件生成一个MySQL转储文件。
- thinkPHP5下扩展encryptedData解密算法文件的注意事项
- 如何加载json文件?
- 使用AJAX将数据发送到.php文件,如何从中获取数据?