PSR7Sessions\Storageless\Session\SessionInterface::get PHP Method

get() public method

Retrieves a value from the session - if the value doesn't exist, then it uses the given $default, but transformed into a immutable and safely manipulated scalar or array
public get ( string $key, integer | boolean | string | float | array | object | JsonSerializable $default = null ) : integer | boolean | string | float | array
$key string
$default integer | boolean | string | float | array | object | JsonSerializable
return integer | boolean | string | float | array
    public function get(string $key, $default = null);