Home Menu

is_array

Finds whether a variable is an array

Syntax

is_array ( mixed $var ) : bool

Parameters

var

The variable being evaluated.

Return

Returns TRUE if var is an array, FALSE otherwise.

Examples

1

<?

$var = array();

$return = is_array($var);

echo $return;

?>
1

2

<?

$var = array(0, 1);

$return = is_array($var);

echo $return;

?>
1

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms