Skip to content

Kirby 4.1.2

$session->pull()

Retrieves a value and removes it afterwards

$session->pull(string $key, mixed $default = null): mixed|null

Parameters

Name Type Default Description
$key * string The key to get
$default mixed null Optional default value to return if the key is not defined

Return type

mixed|null

Parent class

Kirby\Session\SessionData