<u>复制代码</u>代码如下:<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>返回 true; <br>}else{ <br>返回 false; <br>} <br>}<br>