Skip to content

Kirby 4.5.0

$segments->last()

Returns the last element

$segments->last(): mixed

Return type

mixed

Parent class

Kirby\Query\Segments inherited from Kirby\Toolkit\Collection