Hello guys... I still don't get how to do this stuff.. I really aprreciate additional example you can provide me.
I need an example how to feed data into 2 dimensional array using loop.
example
$arrvar=array()
for ($i=0;$i < 10;$i++){
$arrvar = $studentname => $grade;
}
The code above is just an ilustration of what I want to do store the $studentname and grade to an array;
After storing those data in the array I want them now to sort descending...
arsort($arrvar);
foreach($arrvar as $student => $grade){
echo "$student : $grade";
}
That what I want to accomplished... I really appreciate if someone could point me to more specific sample or can give me a better example.