Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function ARRAYFIRST

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

Example

arrayfirst(array array):any

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
array array  Yes The array to obtain the first Item from