"red","b"=>"green","c"=>"blue"); echo array_search("red",$a);