ArrayLast()
Returns the last element of an array
ArrayLast( array=array );
Returns: any
Examples
Member Function
names = ["Marcus", "Sarah", "Josefine"];
dump(names.last()); // outputs 'Josefine'
Non-Member Function
names = array("Marcus","Sarah","Josefine");
dump(arrayLast(names)); // outputs 'Josefine'
See also
- Arrays
- array.last()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)