is_array

(FW >= 1.0)

is_array - checks if a variable is an array

Description

int is_array( mixed $var )
Returns 1 if the variable is an array, otherwise returns 0

Parameters

var

variable to check

Return Value

returns 1 if the variable is an array

Examples

<? 
$x=1;
print(is_array($x)); // outputs 0
$y=array("one");
print(is_array($y)); // outputs 1
?>