Ok so I was trying to have a form dropdown menu autoselect the current date without too much javascript coding, so I got the code below (it doesn't autoselect, but it does include the current date as the first options). The year wasn't showing up first like it was supposed to. I did the same for day and month, and those 2 worked perfectly, yet when I had the same code, except days / months in place of years (mday and mon inside brackets), the first year selection wasn't appearing. I'm guessing the problem is the part inside two instances of [$t['year']]. The rest of the code is functioning fine, but I just included it in case I missed something about it (I also tried replacing all years with the last their respective last 2 digits but same result).
<?php
$t = getdate(time());
$year = array(1 =>'2000', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024', '2025', '2026', '2027', '2028', '2029', '2030');
echo '  Year <select name="year" >';
echo '<option value="\" . $t[\'year\'] . \"">' . $year[$t['year']] . '</option>';
foreach( $year as $key => $value ) {
echo "<option value = \"$key\">$value</option>";
}
echo '</select>'; ?>