<br>$time1 = mktime(10,20,30,2,5,2000); //2000-2-5 10:20:30<br>$time2 = mktime(18,30,20,5,2,2000); //2000-5-2 18:30:20<br><br>$diff = (int)(($time2-$time1)/(24*3600));<br><br>echo "$time2 和 $time1 的时间差为:" . $diff . "天<br>";<br>?><br><br> <center> </center> <p style="width:100%;text-align:center;margin:10px 0"> <br> <br> </p> <p style="width:100%;text-align:center;margin:10px 0"> </p> <p class="clear"></p>