# $cart->next()

> Moves the cursor to the next element and returns it

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

```php
$cart->next(): TValue
```

## Return type

`TValue`

## Parent class

`Wagnerwagner\Merx\Cart` inherited from `Kirby\Toolkit\Iterator`
