I have my array in PHP like this:
$countryList = array (
array( // Asia
continent => 'Asia',
country => array('Japan', 'China')
),
array( // Europe
continent => 'Europe',
country => array('Spain', 'France', 'Italy')
)
);
How can I call this array ($countryList
) to ask what is the value of country
if the continent
is 'Asia' ?
I would like to have something like:
$country = 'Japan, China';
Thanks a lot.