Method: cookie::get
Get a cookie value
Info
Syntax
cookie::get($key, $default=null)
Parameters
- $key (string) The name of the cookie
- $default (string) The default value, which should be returned if the cookie has not been found
Return (mixed)
The found value
Example
cookie::get('mycookie', 'peter');
// sample output: 'hello' or if the cookie is not set 'peter'