$session->pull()
Retrieves a value and removes it afterwards
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