<html>
<body>
$cars=array("Volvo","BMW","Toyota");
rsort($cars,SORT_NUMERIC);
$clength=count($cars);
for($x=0;$x<$clength;$x++)
{
echo $cars[$x];
echo "<br>";
}
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_rsort3 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:39 GMT -->
</html>