- rsort: documentation ( source)
<?php
for ($i = 1; $i <= 100000;$i++) {
$arrayFetch[$i] = $i;
}
$arrayFetch = rsort($arrayFetch, true);
foreach ($arrayFetch as $arrayReverse) {
echo $arrayReverse.'<br>';
}