PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php
$cars=array("Volvo","BMW","Toyota");
rsort($cars,SORT_NUMERIC);

$clength=count($cars);
for($x=0;$x<$clength;$x++)
  {
  echo $cars[$x];
  echo "<br>";
  }
?>


</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy