phpword 不能读 excel word 等
The answer is a simple "No". PHPWord doesn't read word documents (though it can read basic style information from a template), only writes them.
http://phpword.codeplex.com/
你看看这个
word的我不确定
excel的确实可以读出来
$_Excel = new ExcelHandle();
//Selectable type list
//'Excel2007', 'Excel5', 'Excel2003XML', 'OOCalc', 'SYLK', 'Gnumeric', 'CSV' in IOFactory.php line66
$reader = PHPExcel_IOFactory::createReader('Excel2007');
$PHPExcel = PHPExcel_IOFactory::load($file_path);
//Get the data of first worksheet, so the sheet whose index is 1 is English version.
$sheet = $PHPExcel->getSheet(0);
//Get the vaild lines and columns of worksheet.
$rows = $sheet->getHighestRow(); // Get totle lines
$columns = $sheet->getHighestColumn(); // Get totle columns
估计word也类似的吧