protected function setMonthAllDaysIntoArray(\DateTime $lngDate)
    {
        $firstDayGivenMonth  = strtotime($lngDate->modify('first day of this month')->format('Y-m-d'));
        $lastDayInGivenMonth = strtotime($lngDate->modify('last day of this month')->format('Y-m-d'));
        $secondsInOneDay     = 24 * 60 * 60;
        return range($firstDayGivenMonth, $lastDayInGivenMonth, $secondsInOneDay);
    }
protected function setMonthAllDaysIntoArray(\DateTime $lngDate)
    {
        $firstDayGivenMonth  = strtotime($lngDate->modify('first day of this month')->format('Y-m-d'));
        $lastDayInGivenMonth = strtotime($lngDate->modify('last day of this month')->format('Y-m-d'));
        $secondsInOneDay     = 24 * 60 * 60;
        return range($firstDayGivenMonth, $lastDayInGivenMonth, $secondsInOneDay);
    }
protected function setMonthAllDaysIntoArray ( \ DateTime $ lngDate ) { $ firstDayGivenMonth = strtotime ( $ lngDate -> modify ( 'first day of this month' ) -> format ( 'Y-m-d' ) ) ; $ lastDayInGivenMonth = strtotime ( $ lngDate -> modify ( 'last day of this month' ) -> format ( 'Y-m-d' ) ) ; $ secondsInOneDay = 24 * 60 * 60 ; return range ( $ firstDayGivenMonth , $ lastDayInGivenMonth , $ secondsInOneDay ) ; }
return an array with all days within a month from a given date

@param \DateTime $lngDate
@return array
return an array with all days within a month from a given date