isArray

Prev Next

It is possible to check with $isArray whether the passed object is an array.

Tooltip

Syntax: $isArray(value)

Parameter

Description

value

The object to be checked

This returns true if it is an array, $false if it is not (even if there is no value).

Syntax

$isArray(value)

Parameter

Name

Description

value

The object to be checked

Return value

$true if it is an array, $false if not (even if there is no value).

Example

Syntax

Input value

Result

$isArray($input)

['a', 'b', 'c']

$true

$isArray($input)

null

$false

$isArray($input)

'abc'

$false

$isArray($input)

[]

$true