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

PHP读入EXCEL的

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-22 18:35:521531Durchsuche


用本站上其他网友提供的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>";
}
?>


本文地址:

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn