Another way to do that is follows
for($i=0; $i<count($array);$i++)
{
if($array[$i]==$yourvalue)
{
echo "Match found";
break;
}
}
You can use for each as well
foreach($array as $arr)
{
if($arr==$yourvalue)
{
echo "Match found";
}
}
Hope that helps,
Di