isArray

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

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