Hi!
I have a problem.
My code generates data from a while loop. I get the distance, and an ID.
Now I need those two data to be linked together (the distance is good for only one id) I need to sort the data by distance and display only the first 5.
I first tried to put the data in an array like this :
$array[ID] = distance
And then sort it…
But I cannot get only the first 5 (shortest distance) by using a for each.
Anyone got a better idea??
thanks a lot!