private function days_in_month($month, $year) {
return $month == 2 ? ($year % 4 ? 28 : ($year % 100 ? 29 : ($year % 400 ? 28 : 29))) : (($month - 1) % 7 % 2 ? 30 : 31);
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29753604/viewspace-1368492/
,如需转载,请注明出处,否则将追究法律责任。