JArrayHelper::getValue
Utility function to return a value from a named array or a specified default
Signature
public function getValue(&
$array,
[string
$name = null,
[mixed
$default = null,
[string
$type = '']]] )
Parameters
-
$array
-
$name
- The key to search for
-
$default
- The default value to give if no key found
-
$type
- Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)
Returns
- mixed
- The value from the source array