Parameter
Gets the first element from an array.
The first array element.
ArrayFirst(array)
ColdFusion (2018 release): Added the function.
Parameter |
Req/Opt |
Description |
---|---|---|
Array |
Required |
The input array from which the first element is to be displayed. |
<cfscript> animals = ['cat','dog','fish','bison']; firstAnimal=ArrayFirst(animals); writeOutput("The first element of the array is: " & firstAnimal); </cfscript>
Hesabınıza giriş yapın