"red","b"=>"green","c"=>"blue","d"=>"yellow"); $result = array_flip($a1); print_r($result);