Ctct\Components\Component::getValue
Get the requested value from an array, or return the default
Signature
protected function getValue(array
$array,
string
$item,
[string
$default = NULL] )
Parameters
$array
— array- - array to search for the provided array key
$item
— string- - array key to look for
$default
— string- - value to return if the item is not found, default is null
Returns
- mixed