php检测文件后缀
/* 检测文件后缀 */ function checkExt($filename){ $config=array("jpg","png","jpeg"); $ext = pathinfo(strip_tags($filename), PATHINFO_EXTENSION); return empty($config) ? true : in_array(strtolower($ext), $config); }
转载声明:本文为红盾科技技术分享平台的原创文章,转载请注明原文地址,谢谢合作
发表评论: