background image

 

 

示例

checkdate(2,21,2006) // 月日年,返回

1(true)

checkdate(4,33,2009) // 返回 false

date(“l”)// 

  

输出星期几 参见

142

 

页 表

7.1

date(“Y-m-d”)// 年月日

date(“H:i:s”)// 时分秒

$a=getdate();

echo $a["year"],$a["mon"],$a["mday"];