Lucee Function Reference

arrayunshift()

Adds an element at the beginning of the array and shifts the rest of the elements to the right.

Introduced: 5.3.8.104

Example

arrayunshift(array array,any value):numeric

Category

array

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 array to add element  
value any  Yes element to add.