array.last()

Returns the last element of an array

array.last( )

Returns: any

This function does not take any arguments.

Examples

myarray = ["one","two","three","TWO","five","Two"];
	res = myarray.last();
	writedump(res);
	myarray = [1,2,3];
	res = myarray.last();
	writedump(res);

See also