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

Asked

Viewed 363 times

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

however I would like some method or form that they present themselves in the ascending order...

I’ve tried everything and I can’t

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.