PHP is_array() Function
is_array() The function is used to check whether a variable is an array.
PHP version requirement: PHP 4, PHP 5, PHP 7
Syntax
bool is_array ( mixed $var )
Parameter Description:
- $var: the variable to check.
Return Value
If the variable being checked is an array, returns TRUE; otherwise returns FALSE.
Example
Example
The output is:
变量 $arr_site 是一个数组
Available PHP Functions