API17

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.  


{{subst:Description:JRequest::getInt}}
 


<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]]
{{subst:SeeAlso:JRequest::getInt}}
 


===User contributed notes===
===User contributed notes===
Line 60: Line 60:
</source>
</source>


<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JRequest::getInt
category=JRequest::getInt
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*

Latest revision as of 03:36, 25 March 2017

Joomla 11.1 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'

See also


User contributed notes

Example

$ourresult   = JRequest::getInt( 'inputbox',              0,                        'post' );

Code Examples