Skip to content

Kirby 4.3.0


Increments one or multiple session values by a specified amount

$session->increment(array|string $key, int $by = 1, ?int $max = null): void


Name Type Default Description
$key * array|string The key to increment or an array with multiple keys
$by int 1 Increment by which amount?
$max int|null null Maximum amount (value is not incremented further)

Parent class