About array foreach while loop for ... to leave results in alphabetical order

0
<?
$n = 0;
$limite = 10;
while ($n <= $limite-1){
$dates = array($user["members"][$n]["rank"]);
foreach ($dates as $value){

echo $value; 

}
$n++;
}
?>

It returns the following value: 87 41 34 32 88 26 16 26 48 0

But I would like some method or form that they presented in ascending order ...

I have tried everything and I can not do it.

    
asked by anonymous 18.02.2018 / 04:57

0 answers