<!DOCTYPE html> <html> <body> <?php $cars=array("Volvo","BMW","SAAB"); rsort($cars); $clength=count($cars); for($x=0;$x<$clength;$x++) { echo $cars[$x]; echo "<br>"; } ?> </body> </html>
<?php $cars=array("Volvo","BMW","SAAB"); rsort($cars); $clength=count($cars); for($x=0;$x<$clength;$x++) { echo $cars[$x]; echo "<br>"; } ?>