PHP is_array() 函数
PHP 教程
· 2019-01-31 16:43:33
is_array() 函数用于检测变量是否是一个数组。
PHP 版本要求:PHP 4, PHP 5, PHP 7
语法
bool is_array ( mixed $var )
参数说明:
- $var:要检测的变量。
返回值
如果检测的变量是数组,则返回 TRUE,否则返回 FALSE。
实例
实例
$arr_site = array('Google', 'Codercto', 'Facebook');
if(is_array($arr_site)){
echo '变量 $arr_site 是一个数组';
} else {
echo '变量 $arr_site 不是一个数组';
}
输出结果为:
变量 $arr_site 是一个数组
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
Chinese Authoritarianism in the Information Age
Routledge / 2018-2-13 / GBP 115.00
This book examines information and public opinion control by the authoritarian state in response to popular access to information and upgraded political communication channels among the citizens in co......一起来看看 《Chinese Authoritarianism in the Information Age》 这本书的介绍吧!