标签:
PHP:
$days
= cal_days_in_month(CAL_GREGORIAN, 4, 2011);
echo
"返回2011-4的天数 "
.
$days
.
"<br/>"
;
$days
=
date
(
‘t‘
,
strtotime
(
"2011-4-1"
));
echo
"返回2011-4的天数 "
.
$days
.
"<br/>"
;
$days
=
date
(
"t"
);
echo
"当前月的天数 "
.
$days
.
"<br/>"
;
标签:
原文地址:http://www.cnblogs.com/lz20150121/p/5434491.html