# $listItems->nth()

> Returns the nth element from the collection

- Source: `src/Toolkit/Collection.php#L724` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Toolkit/Collection.php#L724>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$listItems->nth(int $n): TValue|null
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$n` | `int` | `–` |

## Return type

`TValue|null`

## Parent class

`Wagnerwagner\Merx\ListItems` inherited from `Kirby\Toolkit\Collection`
