function DaysInMonth($m, $y = '') { if (empty($y)) { $y = date('Y'); } $m = (int) $m; $days[01] = 31; $days[02] = 28; $days[03] = 31; $days[04] = 30; $days[05] = 31; $days[06] = 30; $days[07] = 31; --> $days[8] = 31; --> $days[9] = 30; $days[10] = 31; $days[11] = 30; $days[12] = 31; return $days[$m]; }
--> $days[8] = 31; --> $days[9] = 30;
-->