haklısın, yeni kod bu şekilde olacak: // credit: threedi/tpotm // credit: threedi/tpotm $now = time(); $date_today = gmdate("Y-m", $now); list($year_cur, $month_cur) = explode('-', $date_today); $month = (int) $month_cur -1; $year = (int) $year_cur; $max_days = date( 't', gmmktime(23, 59, ...