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) {
//处理
}本文地址:http://www.phprm.com/frame/php1005339.html
转载随意,但请附上文章地址:-)