Example #1
0
 static function daysInMonth($year, $month)
 {
     if ($month == 4 || $month == 6 || $month == 9 || $month == 11) {
         return 30;
     }
     if ($month == 2) {
         return SRFCHistoricalDate::leap_jul_greg($year) ? 29 : 28;
     }
     return 31;
 }