I have set up an array that includes the months of the year.
<?php
// define array
$month = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
// loop over it
// print array elements
foreach ($month as $a) {
echo '<br>'.$a;
}
?>
Is there a way to have this start with the current date?
I've seen date("m") used to pull the current date and have it set as the option value in a select box, but not in the array itself.
Any help would be greatly appreciated.