# Last

Returns the last X characters of a string, where X is any positive integer, or the last item in an array.

```yaml
title: 2015 Denver Nuggets
array:
  - Sonic
  - Knuckles
  - Tails
```

::tabs

::tab antlers
```antlers
{{ title | last(7) }}
{{ array | last }}
```
::tab blade
```blade
{{ Statamic::modify($title)->last(7) }}
{{ Statamic::modify($array)->last() }}
```
::

```html
Nuggets
Tails
```
