问题描述:
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吗?
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吗?
问题解答:
我来补答展开全文阅读