Last updated on December 23, 2015
in_array() is the function to Check if a value exists in an array using PHP. Here is an example of how it is used: –
$array = array("IN", "US", "UK", "AUS"); if (in_array("IN", $array)) { echo "IN is in array!
"; }