Whatever message this page gives is out now! Go check it out!
ArrayLast(array)| Parameter | Req/Opt | Description |
Array | Required | The input array from which the last element is to be displayed. |
<cfscript>
animals = ['cat','dog','fish','bison'];
lastAnimal=ArrayLast(animals);
writeOutput("The last element of the array is: " & lastAnimal); // returns "bison"
</cfscript>