I have the following array:
array(2) {
[0]=>
array(2) {
["EAN"]=>
string(13) "1234567890123"
["Price"]=>
string(5) "99.00"
}
[1]=>
array(2) {
["EAN"]=>
string(13) "2234567890123"
["Price"]=>
string(6) "199.00"
}
}
I would like to:
1) Find one of these sub arrays using the EAN value
2) And return the related price for this specific EAN
So for example the function getPrice('2234567890123') should return 199.00.
What should be the code for the function getPrice?