is_array
Description
The is_array of Variable Handling for PHP finds whether a variable is an array.
Syntax
is_array( mixed $value ): bool
Parameters
value
The variable being evaluated.
Return
Returns true if value is an array, false otherwise.
Examples
1
<? $value = array(); $return = is_array($value); var_export($return);
true
2
<? $value = array(0, 1); $return = is_array($value); var_export($return);
true
3
<? $value = ""; $return = is_array($value); var_export($return);
false
Links
Variable Handling
- boolval
- debug_zval_dump
- doubleval
- empty
- floatval
- get_debug_type
- get_defined_vars
- get_resource_id
- get_resource_type
- gettype
- intval
- is_bool
- is_callable
- is_countable
- is_double
- is_float
- is_int
- is_integer
- is_iterable
- is_long
- is_null
- is_numeric
- is_object
- is_real
- is_resource
- is_scalar
- is_string
- isset
- print_r
- serialize
- settype
- strval
- unserialize
- unset
- var_dump
- var_export