Method: r::get
Gets a request value by key
Info
Syntax
r::get($key=false, $default=null)
Parameters
- $key (mixed) The key to look for. Pass false or null to return the entire request array.
- $default (mixed) Optional default value, which should be returned if no element has been found
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