Hi guys,
Any idea why the following is causing an undefined offset? Guessing its to do with $months[$i] as the closing bracket appears highlighted in my text editor.
<?php
$months = array('January', 'February', 'March', 'April', 'May');
$i = 0;
while ($i < 10) {
echo "<li>$months[$i]</li>";
$i++;
}
?>