in array php stric 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";
}