<?php $countries = array("Hong Kong", "USA", "UK"); if (in_array("USA", $countries)) { echo "Match"; } ?>