I have an array , I want to get result by passing currency parameter . E.g $array is the variable containing array.
I want to get by this way $array['EUR']['rate']
How can i get by this way. Please Help
Array
(
[0] => Array
(
[id] => 1
[name] => Andorra
[code] => AD
[currency] => EUR
[phone] => +376
[rate] => 5727.21
)
[1] => Array
(
[id] => 2
[name] => United Arab Emirates
[code] => AE
[currency] => AED
[phone] => +971
[rate] => 24341.9
)
)
I want to get