Note you could also make it re-usable and wrap it in a function to search similarly-structured arrays, e.g.:
function array_multi_search($array, $target_key, $search_key, $search_value) {
foreach($array as $subarray)
if($subarray[$search_key] == $search_value)
return $subarray[$target_key];
return FALSE; // false indicates search value wasn't found
}
Don't forget to mark this thread resolved (if it is) using the link on the Thread Tools menu above.