大写Y效果:
$nowtime = time();
$nowtime=date("Y-m-d",$nowtime);
结果: 2015-10-24
小写y效果:
$nowtime = time();
$nowtime=date("Y-m-d",$nowtime);
结果: 15-10-24
大写Y效果:
$nowtime = time();
$nowtime=date("Y-m-d",$nowtime);
结果: 2015-10-24
小写y效果:
$nowtime = time();
$nowtime=date("Y-m-d",$nowtime);
结果: 15-10-24
转载于:https://www.cnblogs.com/sunzhenyong/p/4305421.html