Actions

API17

Difference between revisions of "JArrayHelper::getValue"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 45: Line 45:
 
mixed The value from the source array
 
mixed The value from the source array
 
===Defined in===
 
===Defined in===
libraries/joomla/utilities/arrayhelper.php
+
libraries/joomla/utilities/arrayhelper.php (line 204)
 +
* see source code in [[jplatform:utilities/arrayhelper.php#cl-204|BitBucket]]
 
===Referenced by===
 
===Referenced by===
* [[JUser/bind/11.1|JUser::bind]]
+
* [[JUser::bind/11.1|JUser::bind]]
* [[JModelForm/loadForm/11.1|JModelForm::loadForm]]
+
* [[JModelForm::loadForm/11.1|JModelForm::loadForm]]
* [[JControllerAdmin/publish/11.1|JControllerAdmin::publish]]
+
* [[JControllerAdmin::publish/11.1|JControllerAdmin::publish]]
 
===See also===
 
===See also===
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">

Revision as of 18:55, 23 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JArrayHelper::getValue

Description

Utility function to return a value from a named array or a specified default.

Description:JArrayHelper::getValue [Edit Descripton]

Since

Joomla 11.1

Synopsis

public static JArrayHelper::getValue (&$array, $name, $default=null, $type='')
Parameter Type Default Description
&$array array $array A named array
$name string The key to search for
$default mixed null The default value to give if no key found
$type string Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)

Returns

mixed The value from the source array

Defined in

libraries/joomla/utilities/arrayhelper.php (line 204)

Referenced by

See also

[Edit See Also]

SeeAlso:JArrayHelper::getValue

Examples

<CodeExamplesForm />