JRequest::getInt: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Fetches and returns a given filtered variable. | Fetches and returns a given filtered variable. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 52: | Line 52: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | ||
* [[API17:JRequest::getInt|Other versions of JRequest::getInt]] | * [[API17:JRequest::getInt|Other versions of JRequest::getInt]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
| Line 60: | Line 60: | ||
</source> | </source> | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JRequest::getInt | category=JRequest::getInt | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:36, 25 March 2017
JRequest::getInt
Description
Fetches and returns a given filtered variable.
public static function getInt (
$name
$default=0
$hash= 'default'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | |||
| $default | 0 | ||
| $hash | 'default' |
- Returns
- Defined on line 175 of libraries/joomla/environment/request.php
- Referenced by
See also
JRequest::getInt source code on BitBucket
Class JRequest
Subpackage Environment- Other versions of JRequest::getInt
User contributed notes
Example
$ourresult = JRequest::getInt( 'inputbox', 0, 'post' );
Code Examples