<html>
<body>
$cars = array("Volvo", "BMW", "Toyota");
sort($cars);
$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_array_sort_alpha by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:29:31 GMT -->
</html>