Usage of in_array function The in_array function determines whether there is an M character in the array. Let me give an example below:
$ext = array('avi','wmv','asf','mov','rm','ra','ram','mp3','wma','swf');
if(in_array('mp3',$ext) ){
echo 'exist';
}else{
echo 'does not exist';
}
http://www.bkjia.com/PHPjc/631376.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631376.htmlTechArticleUsage of in_array function The in_array function determines whether there is an M character in the array. Let me give an example below: ?php $ ext=array('avi','wmv','asf','mov','rm','ra','ram','mp3','wma','swf'); if...