User Tools

Site Tools


uphp:functions:is_array

This is an old revision of the document!


is_array

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Return 1 if the variable is an array

Description

int is_array ( mixed $variable )

Return 1 (true) if the variable is an array, otherwise return 0 (false)

Parameters

variable: Variable or expression to be tested to see if it is an array

Return Value

1 if array, 0 if not an array

Example

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

See Also

is_int() - Return 1 if the variable is an integer

is_float() - Return 1 if the variable is a float

is_string() - Return 1 if the variable is a string

is_numeric() - Return 1 if the value is numeric (integer, float or string)

uPHP Variable Types and Limits

array() - Create an array with values

uphp/functions/is_array.1489068930.txt.gz · Last modified: 2021/09/13 05:56 (external edit)