API17

JRequest:: cleanArray: Difference between revisions

From Joomla! Documentation

m See also: moving preparation
m clean up
Line 4: Line 4:
Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked.  
Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked.  


{{Description:JRequest::_cleanArray}}
{{subst:Description:JRequest::_cleanArray}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JRequest::_cleanArray|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
public static function _cleanArray (
public static function _cleanArray (
Line 40: Line 38:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]]
* [[API17:JRequest::_cleanArray|Other versions of JRequest::_cleanArray]]
* [[API17:JRequest::_cleanArray|Other versions of JRequest::_cleanArray]]
{{SeeAlso:JRequest::_cleanArray}}
{{subst:SeeAlso:JRequest::_cleanArray}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRequest::_cleanArray|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 16:00, 24 March 2017

Joomla 11.1 JRequest::_cleanArray

Description

Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked.

{{subst:Description:JRequest::_cleanArray}}

public static function _cleanArray (
        &$array
        $globalise=false
)
Parameter Type Default Description
&$array array $array Array to clean.
$globalise boolean false True if the array is to be added to the GLOBALS.
  • Returns
  • Defined on line 512 of libraries/joomla/environment/request.php
  • Since Joomla 11.1

See also

{{subst:SeeAlso:JRequest::_cleanArray}}

User contributed notes

<CodeExamplesForm />