I solved it , below code work fine
$countryArray = array(
'AD' => array(
'country_name' => 'ANDORRA',
'dial_code' => '376'
),
'AE' => array(
'country_name' => 'UNITED ARAB EMIRATES',
'dial_code' => '971'
),
'AF' => array(
'country_name' => 'AFGHANISTAN',
'dial_code' => '93'
));
foreach ($countryArray as $keys=> $arraycountry){
foreach($arraycountry as $key => $value)
{
if($value == '93'){
echo $keys; //???
}
}
}
0
solved Php multi array foreach loop