Professional Documents
Culture Documents
Indexed Arrays
Indexed Arrays
<?php
$month = array ('January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December');
echo "<h3>1. Indexed Arrays</h3>";
echo "<h3> Using for loop:</h3>";
for ($i = 0; $i < count($month); $i++) {
echo $month[$i] . "<br>";
}