JRequest::get
Fetches and returns a request array.
The default behaviour is fetching variables depending on the current request method: GET and HEAD will result in returning $_GET, POST and PUT will result in returning $_POST. You can force the source by setting the $hash parameter: post $_POST get $_GET files $_FILES cookie $_COOKIE env $_ENV server $_SERVER method via current $_SERVER['REQUEST_METHOD'] default $_REQUEST
Signature
public function get([string
$hash = 'default',
[integer
$mask = 0]] )
Parameters
-
$hash
- to get (POST, GET, FILES, METHOD).
-
$mask
- Filter mask for the variable.
Returns
- mixed
- Request hash.