<?php $os = array("Apple", "Banana", "Lemon"); if (in_array("Apple", $os)) { echo "Yeah. Exist Apple"; } if (!in_array("Buleberry", $os)) { echo "Oh, Don't Exist Blueberry!!!"; } ?>