php 有关date('w')的问题

php 有关date('w')的问题
php中
$month取值范围(1,2,3,4,5,6,7,8,9,10,11,12)
$year取值范围(2012,2013,2014,2015)
$a= date('w',mktime(0,0,0,$month,1,$year));
if($a==7 )
{
$a= 0;
}
请问这个$a有可能等于7吗?
北方的小雨 1年前 已收到1个回答 举报

小张ww 幼苗

共回答了16个问题采纳率:68.8% 举报

w - 数字型的星期几,如: "0" (星期日) 至 "6" (星期六)

1年前

10
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.013 s. - webmaster@yulucn.com