<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_18014"> php 获取指定时间所在月份的天数 <div class="blockcode"> <div id="code_lVJ"><ol> <li> <?php <li> $days = cal_days_in_month(CAL_GREGORIAN, 4, 2011);</li> <li> echo "返回2011-4的天数 ".$days."<br>";</li> <li> $days = date('t', strtotime("2011-4-1"));</li> <li> echo "返回2011-4的天数 ".$days."<br>";</li> <li> $days = date("t"); </li> <li> echo "当前月的天数 ".$days."<br>";</li> <li>?></li> </ol></div> <em onclick="copycode($('code_lVJ'));">复制代码</em> </div> </td></tr></table> <div id="comment_18014" class="cm"> </div> <div id="post_rate_div_18014"></div> <br><br>