There are 2 arrays:
$a1 = array('country' => array('Russia', 'Ukraine', 'Belarus')); $a2 = array('country' => array('Russia' => 'Krasnodar', 'Ukraine' => 'Kiew', 'Belarus' => 'Minsk')); The task is to check that the value has a key, not an index. The second array is correct, the first is not. Is there such a possibility or dig somewhere in the other direction?
UPD: Helped option from comments with is_string check.