JArrayHelper::getValue
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JArrayHelper::getValue[edit]
Description[edit]
Utility function to return a value from a named array or a specified default.
public static function 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 on line 204 of libraries/joomla/utilities/arrayhelper.php
- Since
- Referenced by
See also[edit]
- JArrayHelper::getValue source code on BitBucket
- Class JArrayHelper
- Subpackage Utilities
- Other versions of JArrayHelper::getValue
User contributed notes[edit]
Code Examples[edit]