<html>
<body>
$cars = array("Volvo", "BMW", "Toyota");
$arrlength = count($cars);
for($x = 0; $x < $arrlength; $x++) {
echo $cars[$x];
echo "<br>";
}
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_array_num_loop by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:29:31 GMT -->
</html>