PHP reads Excel and displays the implementation code

小云云
Release: 2023-03-20 14:24:02
Original
2241 people have browsed it

This article mainly shares with you PHP reading Excel and shows the implementation code. I hope it can help everyone.

Use this tool. phpExcelReaderBecause it’s free

Writeindex.phpIntroduce the resource fileexcel_reader2.php.

dump(true,true);//输出结果,其中dump()函数的两个参数用于指定否需要显示excel文件中原有的行号和列号 ?>
Copy after login

Because this tool is from ancient times, there will be error prompts when setting it up directly in the php7 environment.
Modificationexcel_reader2.phpThe following places are used to modify and block errors..

  1. Line 98 logoutfunction OLERead() { }This function

  2. putssplit(Replace withexplode(

  3. ## and block the error option `error_reporting(0);

    ## inindex.php

  4. #There are still some warnings after modifying the above. What should I do if
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Spreadsheet_Excel_Reader has a deprecated constructor in D:\xampp\htdocs\pdfreader\excel_reader2.php on line 312Warning: gmdate() expects parameter 2 to be integer, float given in D:\xampp\htdocs\pdfreader\excel_reader2.php on line 79Warning: gmdate() expects parameter 2 to be integer, float given in D:\xampp\htdocs\pdfreader\excel_reader2.php on line 79
Copy after login

is as follows? Easy, come~

error_reporting(0);
Copy after login

Related recommendations:


##Detailed introduction Sample code for PHPExcel to read Excel time

php generates and reads excel files

phpExcel reads excel files

The above is the detailed content of PHP reads Excel and displays the implementation code. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!