Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP is_array() Function

PHP is_array() Function

PHP Available FunctionsAvailable PHP Functions

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:

Return Value

If the variable being checked is an array, returns TRUE; otherwise returns FALSE.

Example

Example

The output is:


变量 $arr_site 是一个数组

PHP Available FunctionsAvailable PHP Functions