Home > php教程 > php手册 > PHP读入EXCEL的

PHP读入EXCEL的

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-22 18:35:52
Original
1532 people have browsed it


用本站上其他网友提供的EXCEL类导入数据后,在MYSQL中显示的都是श...等之类的代码,无法显示中文。我在使用过程中也是如此,为此我在网上查询很久,最终对两位网友提供的类进行了综合,解决了此类问题,请大家下载使用!
对此类的运用方法如下:

<?php
require "excel_class.php";
Read_Excel_File("Book1.xls",$return);
for ($i=0;$i<count($return[Sheet1]);$i++)
{
  for ($j=0;$j<count($return[Sheet1][$i]);$j++)
    {
      echo $return[Sheet1][$i][$j]."|";
    }
  echo "<br>";
}
?>
Copy after login


本文地址:

转载随意,但请附上文章地址:-)

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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template