x
 
<!DOCTYPE html>
<html>
<body>
<?php
$numbers=array(3,5,1,22,11);
rsort($numbers);
$arrlength=count($numbers);
for($x=0;$x<$arrlength;$x++)
   {
   echo $numbers[$x];
   echo "<br>";
   }
?>
</body>
</html>