php in_array value 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";
}