Thursday, 13 October 2016

loop through an indexed array in php

Indexed Array

<?php
$cars = array("php", "javascript", "jquery");
$arrlength = count($cars);

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

No comments:

Post a Comment