<?php
$var = 5;
for ($i = 0; $i <= $var-1; $i++) {
$new_data = array($i => $count[$i]["rank"]);
foreach ($new_data as $i => $key) {
print(var_export($key).",");
}
}
?>
It returns this: 87,41,88,32,26,26,48,16,0,34,46,135,11,38,52,33
How to return this in ascending order? or in numerical order?