PHP reads data from EXCEL

Source: Internet
Author: User

Changes to the php excel reading class are displayed in MYSQL after the EXCEL class provided by other users on this site is imported. & #2358... cannot display Chinese characters. This is also true when I am using it. For this reason, I have been querying the Internet for a long time and finally integrated the classes provided by the two netizens to solve these problems. Please download and use them!
We are all exploring. If the copyright of the original author is infringed, please forgive me !!!!
If you do not agree, I will delete it now!


The usage of this type is as follows:

<? 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> ";
}
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.