需要借助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 }

 

相关文章:

  • 2022-12-23
  • 2021-04-14
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案