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