时间:2021-07-01 10:21:17 帮助过:44人阅读
$ext = array('avi','wmv','asf','mov','rm','ra','ram','mp3','wma','swf');
if(in_array('mp3',$ext) ){
echo '存在';
}else{
echo '不存在';
}
http://www.bkjia.com/PHPjc/631376.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/631376.htmlTechArticlein_array函数的用法 in_array函数判断数组中是否存在M字符,下面我举个例子说明: ?php $ext=array('avi','wmv','asf','mov','rm','ra','ram','mp3','wma','swf'); if...