public function monthArray($begin, $end, $year = '')
    {
        if (empty($year)) {
            $year = date('Y');
        }
        $dateArray = array();
        for ($i = $begin; $i <= $end; ++$i) {
            $dateArray[] = $i;
        }
        return $dateArray;
    }
public function monthArray($begin, $end, $year = '')
    {
        if (empty($year)) {
            $year = date('Y');
        }
        $dateArray = array();
        for ($i = $begin; $i <= $end; ++$i) {
            $dateArray[] = $i;
        }
        return $dateArray;
    }
public function monthArray ( $ begin , $ end , $ year = '' ) { if ( empty ( $ year ) ) { $ year = date ( 'Y' ) ; } $ dateArray = array ( ) ; for ( $ i = $ begin ; $ i <= $ end ; ++ $ i ) { $ dateArray [ ] = $ i ; } return $ dateArray ; }
Generate month number array
@param  Integer $begin month start
@param  Integer $end   month end
@param  string $year  Year
@return array
Generate month number array