For example I have a list like
Code: Select all
1,3,4,2,5,1,4,1,2,3,1,3Code: Select all
1,3,4,2,5Here is my attempt
Code: Select all
$mindex = 0; $matchCont = true;
while($matchCont)
{
if ($allCounts[$mindex] = $guiCount[0])
$match = true;
if ($mindex >= sizeof($allCounts) - 1)
$matchCont = false;
echo $guiCount[0] . " - " . $mindex . "<br>";
$mindex++;
}
if (!$match)
$allCounts[sizeof($allCounts)] = $guiCount[0];