i have a "friend_array" table, it has ids: "2,14,24,51,102,155,523,156"

$friend_array = $printinfo["friend_array"];
$friendList = "";
if($friend_array != "")
{
$friend_array = explode(",", $friend_array);
$friend_Count = count($friend_array);
$friend_array = array_slice($friend_array, 0,$friend_Count);

echo "Totals ids: ".$friend_Count."<br />"; // display total ids //

foreach($friend_array as $key => $value)
{
echo $value."<br />"; // here displays the ids 2 br 14 br 24 etz.. my question is, //
}
}

if the visitor id is 14 how to verific if it match with any of the $value ids?
then if any $value == $visitor_id { you are a member } else not a member..

i get stoked xD
aff
friend array is the name of the table.. inside the table there are the id numbers
and my question is below:


if the visitor id is 14 how to verific if it match with any of the $value ids?
then if any $value == $visitor_id { you are a member } else not a member..