Hi guys.
I'd like to return yellow or whatever the value of the key is if a match is found. Can I use the in_array" function? How can I do it?
$x = "BANANA";
function formatTitle($x){
$titles = array (
"APPLE" => "RED",
"BANANA " => "YELLOW",
"CARROT" => "ORANGE"
);
return $x;
}