<div class="codetitle"> <span><a style="CURSOR: pointer" data="88633" class="copybut" id="copybut88633" onclick="doCopy('code88633')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code88633"> <br>function ($file_name,$pass_type=array('jpg','jpeg','gif','bmp','png')){ <br>$yx_file = $pass_type; <br>$kzm = substr(strrchr($file_name,"."),1); <br>$is_img = in_array(strtolower($kzm),$yx_file); <br>if($is_img){ <br>return true; <br>}else{ <br>return false; <br>} <br>}<br> </div>