Skip to content

Kirby 4.2.0

$segments->key()

Returns the current key

$segments->key(): string|int|null

Return type

string|int|null

Parent class

Kirby\Query\Segments inherited from Kirby\Toolkit\Iterator