首页 > php框架 > php上传Excel文件时如何判断文件中有图片

php上传Excel文件时如何判断文件中有图片

php上传Excel文件时如何判断文件中有图片 有需要的朋友可参考参考。

<?php
$excelPath = 'Test.xls';
$objReader = PHPExcel_IOFactory::createReader(Excel5);
$objReader->setReadDataOnly(true);
$objPHPExcel = $objReader->load($excelPath);
$currentSheet = $objPHPExcel->getActiveSheet();
$AllImages = $currentSheet->getDrawingCollection();
if (count($AllImages) > 0) {
    //处理
    
}


文章地址:https://www.phprm.com/frame/php1005339.html

转载随意^^请带上本文地址!

标签:none

发表留言