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.