Method: cookie::get

Get a cookie value

Info

Syntax

cookie::get($key, $default=null)

Parameters

Return (mixed)

The found value

Example


cookie::get('mycookie', 'peter');
// sample output: 'hello' or if the cookie is not set 'peter'