{* *}
code teams

yearArray



/*
    return an array of years with n number of years before or after current year
    $before = how many years before current year
    $after = how many years after current year
*/
function yearArray($before, $after)
{
    $yr = date("Y");
    $start = $yr - $before;
    $end = $yr + $after;
    $aY = array();
    for($x = $start; $x <= $end; $x++) {
        $aY[] = ($x);
    }
    return $aY;
}