API17:JArrayHelper::getValue
From Joomla! Documentation
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.
JArrayHelper::getValue
Description
Utility function to return a value from a named array or a specified default.
Description:JArrayHelper::getValue [Edit Descripton]
Since
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)
- see source code in BitBucket
Referenced by
See also
SeeAlso:JArrayHelper::getValue
Examples
<CodeExamplesForm />
