Skip to content

Kirby 4.5.0

$collection->key()

Returns the current key

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

Return type

string|int|null

Parent class

Kirby\Toolkit\Collection inherited from Kirby\Toolkit\Iterator