当前月有多少天
$thisMonthDays = date('t'); echo '本月'.$thisMonthDays .'天';
上月有多少天
$lastMonthDays = date('t', strtotime('+1 month')); echo '上月'.$lastMonthDays .'天';
下月有多少天
$nextMonthDays = date('t', strtotime('-1 month')); echo '下月'.$nextMonthDays .'天';