JRequest::getInt
Fetches and returns a given filtered variable. The integer filter will allow only digits and the - sign to be returned. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
Signature
public function getInt(string
$name,
[integer
$default = 0,
[string
$hash = 'default']] )
Parameters
-
$name
- Variable name.
-
$default
- Default value if the variable does not exist.
-
$hash
- Where the var should come from (POST, GET, FILES, COOKIE, METHOD).
Returns
- integer
- Requested variable.