Usage of in_array function_PHP tutorial

WBOY
Release: 2016-07-13 16:58:41
Original
1008 people have browsed it

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';

}

www.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...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!