I have an array variable $colorArray = array('red','white','blue');
Suppose $color = "red";
, how do I match the value of $color with $colorArray and then find the corresponding key value of "red"? After I find the key value of "red", I would then need to store the key value in another variable for other uses.