需要借助PHPExcel这个库
1 $excelPath = 'Test.xls'; 2 3 $objReader = PHPExcel_IOFactory::createReader('Excel5'); 4 $objReader->setReadDataOnly(true); 5 6 $objPHPExcel = $objReader->load($excelPath); 7 $currentSheet = $objPHPExcel->getActiveSheet(); 8 $AllImages= $currentSheet->getDrawingCollection(); 9 10 if(count($AllImages) > 0) { 11 //处理 12 }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/16490.html