How PHP should read the contents of Word and Excel files

Source: Internet
Author: User
How should PHP read the contents of Word and Excel files?
Title.

------Solution--------------------
Read the contents of the Excel file, you can directly save the Excel file as a CSV format, and then directly read the text as read as well.
------Solution--------------------
PHP Code
  $value) {$backup _array[$key] = $array [$key]; } $upper _limit = count ($array);     while ($n <= $upper _limit) {if ($n = = $ky) {$array [$n] = $val;       Echo $n;     } else {$i = $n-"1";       $array [$n] = $backup _array[$i];   } $n + +; } return $array;} $AA = Readexcelsheet (' Sta.xls '); Var_dump ($AA);? >
------Solution--------------------
It's not a knot and then it's posted.

Old Post's answer: http://topic.csdn.net/u/20090108/17/0431cb64-6a3c-4120-8e8e-8201710018d7.html
------Solution--------------------
Mark
------Solution--------------------
Well. Study of ~
------Solution--------------------
The parsing of XSL files has a specialized class.

Doc files you have to convert to other files in the format XML or HTML to parse well.
------Solution--------------------
The 2 floor is only read CSV, not what excel,word.
Really want to read and write Excel,word, but also to COM, PHP has COM interface.
  • 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.