Searching for multiple values in an array
Posted: Mon Dec 29, 2008 2:06 pm
I can't figure out how to do this.
I have an array for example:
$colors = array("red", "green", "blue", "orange", "purple", "yellow");
I have used in_array in the past to do this for a single value but what if I am wanting to check is if red, orange, AND yellow all show up in the array somewhere? How would I do that?
Thanks.
I have an array for example:
$colors = array("red", "green", "blue", "orange", "purple", "yellow");
I have used in_array in the past to do this for a single value but what if I am wanting to check is if red, orange, AND yellow all show up in the array somewhere? How would I do that?
Thanks.