Home > php教程 > php手册 > in_array函数的用法

in_array函数的用法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:03:19
Original
1043 people have browsed it

in_array函数的用法 in_array函数判断数组中是否存在M字符,下面我举个例子说明:

 

$ext = array('avi','wmv','asf','mov','rm','ra','ram','mp3','wma','swf');

 

if(in_array('mp3',$ext) ){

   echo '存在';

}else{

 echo '不存在';

}

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
Latest Issues
How to create an array within an array?
From 1970-01-01 08:00:00
0
0
0
php array
From 1970-01-01 08:00:00
0
0
0
Array to array
From 1970-01-01 08:00:00
0
0
0
php array rotation
From 1970-01-01 08:00:00
0
0
0
array
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template