$segments->nth()
Returns the nth element from the collection
$segments->nth(int $n): Kirby\Query\Segment|null
Parameters
Name | Type | Default |
---|---|---|
$nrequired | int |
no default value |
Return types
Kirby\Query\Segment
ornull
This method modifies the existing $segments
object it is applied to and returns it again.
Parent class
Kirby\Query\Segments
inherited from Kirby\Toolkit\Collection