Solar_Session::get()

public mixed Solar_Session::get ( string $key , mixed $val = NULL )

Gets a normal value by key, or an alternative default value if the key does not exist.

Parameters

  • (string) $key: The data key.

  • (mixed) $val: If key does not exist, returns this value instead. Default null.

Returns

  • (mixed) The value.

Description

Gets a normal value by key, or an alternative default value if the key does not exist.



Local