public function getMonthName($month = null)
    {
        if ($month === null) {
            $month = $this->getMonth();
        }
        if ($month <= 0) {
            $month += count($this->monthNames);
        }

        $idx = $month - 1;

        return $this->monthNames[$idx];
    }
public function getMonthName($month = null)
    {
        if ($month === null) {
            $month = $this->getMonth();
        }
        if ($month <= 0) {
            $month += count($this->monthNames);
        }

        $idx = $month - 1;

        return $this->monthNames[$idx];
    }
public function getMonthName ( $ month = null ) { if ( $ month === null ) { $ month = $ this -> getMonth ( ) ; } if ( $ month <= 0 ) { $ month += count ( $ this -> monthNames ) ; } $ idx = $ month - 1 ; return $ this -> monthNames [ $ idx ] ; }
Return month name

@param int $month Month index in 1..12 range

@return string
Return month name