(PHP 4, PHP 5)
checkdate — 验证一个格里高里日期
$month
    , int $day
    , int $year
    )
   如果给出的日期有效则返回 TRUE,否则返回
   FALSE。检查由参数构成的日期的合法性。日期在以下情况下被认为有效:
   
Day 的值在给定的 month
      所应该具有的天数范围之内,闰年已经考虑进去了。
     
    
Example #1 checkdate() 例子
<?php
var_dump(checkdate(12, 31, 2000));
var_dump(checkdate(2, 29, 2001));
?>
以上例程会输出:
bool(true) bool(false)
参见 mktime() 和 strtotime()。
month
     The month is between 1 and 12 inclusive.
day
     
       The day is within the allowed number of days for the given 
       month.  Leap years 
       are taken into consideration.
      
year
     The year is between 1 and 32767 inclusive.
   Returns TRUE if the date given is valid; otherwise returns FALSE.
  
Example #2 checkdate() example
<?php
var_dump(checkdate(12, 31, 2000));
var_dump(checkdate(2, 29, 2001));
?>
以上例程会输出:
bool(true) bool(false)