php if string in list of string code example
Example: php in array
$colors = array("red", "blue", "green");
if (in_array("red", $colors)) {
echo "found red in array";
}
$colors = array("red", "blue", "green");
if (in_array("red", $colors)) {
echo "found red in array";
}