is_array(value) returns true if value is an array.
PHP is_array(value) function has the following syntax.
is_array(value)
is_array(value) returns true if value is an array.
Is it an array?
<?php
$values = array(2, "2", 2.5, "2.5", null, true);
var_dump(is_array($values));
?>
The code above generates the following result.