$i=0;
while($i<5)
{
$car = array_pop($array);
for($car as $carID => $score)
{
echo "CARID $carID SCORE $score<BR>";
}
$i++;
}
I have the code as above. I want to pop the five top elements of an array (sorted in descending scores).
The array was set up as follows...
$array[$carID]=$totalScore;
When i run the file, I get the following error...
Parse error: parse error, unexpected T_AS, expecting ';' in cbrSearchDetailsProcess.php on line 602
anyone help me?