ArrayFirst

Returns the first item from an array. Throws an error if the array is empty.

Returns: any

Usage

ArrayFirst( array )

Arguments

Argument Description
array
(array, required)

The array to obtain the first Item from

Examples

aNames = array("Marcus","Sarah","Josefine");
dump( var=aNames, label="aNames - origional array" );
dump(var=arrayFirst(aNames),label="first element of array aNames");

See also