此代码不起作用.回声是空白的.PHP版本:PHP 5.0.5版
$today=(int)date("j"); # today
$statedate=12;
if ((int)$startdate == (int)$today){
echo '12th';
}
if ((int)$startdate == (int)$today){
echo '14th';
}
Run Code Online (Sandbox Code Playgroud)
$today=(int)date("j"); # today
$statedate=12; //NEVER USED!
if ((int)$startdate == (int)$today){
echo '12th';
}
if ((int)$startdate == (int)$today){
echo '14th';
}
Run Code Online (Sandbox Code Playgroud)
你是定义$statedate而不是 $startdate
| 归档时间: |
|
| 查看次数: |
252 次 |
| 最近记录: |