# ArrayLast()

Returns the last element of an array

```
ArrayLast( array=array );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| array | array | Yes | an array |  |

# Examples

### Member Function

```cfml
	names = ["Marcus", "Sarah", "Josefine"];
	dump(names.last()); // outputs 'Josefine'
```

### Non-Member Function

```cfml
	names = array("Marcus","Sarah","Josefine");
	dump(arrayLast(names)); // outputs 'Josefine'
```







# Categories

[Arrays](../../categories/array.md)

# See Also

[array.last()](../objects/array/last.md)