Method: r::get

Gets a request value by key

Info

Syntax

r::get($key=false, $default=null)

Parameters

Return (mixed)

Example


echo r::get('username');
// sample output 'bastian'

echo r::get('username', 'peter');
// if no username is found in the request peter will be echoed

echo get('username');
// shortcut