Skip to content

Kirby 6.0.0

$path->last()

Returns the last element

$path->last(): string|null

Return types

stringornull

Parent class

Kirby\Http\Path inherited from Kirby\Toolkit\Collection