Skip to content

Kirby 6.0.0

$path->first()

Returns the first element

$path->first(): string|null

Return types

stringornull

Parent class

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