您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

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

2025/1/10 6:57:13发布16次查看
php上传excel文件时如何判断文件中有图片,实例代码如下:
$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) { //处理 }
永久链接:
转载随意!带上文章地址吧。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product