Merx

$cart->nth()

Returns the nth element from the collection

$cart->nth(int $n): TValue|null

Parameters

Name Type Default
$n int -

Return type

TValue or null

Parent class

Wagnerwagner\Merx\Cart inherited from Kirby\Toolkit\Collection