hello there
i have an array. for example 115, 115, 117, 118, 118
how can i compare the values in it....the values each time of execution will change so i cant use in_array because i wont know the values....Moreover tthis array is a result from a mysql query.
$len = count($topic);
for ($i = 0; $i < $len; $i++)
{
for ($j = 1; $j < $len; $j++)
{
if ($topic[$i] == $topic[$j])
{
echo 'yes';
}
else
{
echo 'no';
}
}
}
i am using tthis so far but how can i isolate 117 which appears only once?
thank u