怎么结果是不打折?
$today = date('m-d',time());//获取当天日期
$birthday = "11-17";//生日
$mony = 100;
$discount=0.8;
if($today==$birthday)
{
$mony = $mony*$discount;//打八折
}else{
$mony = $mony;//不打折
}
echo $mony
$today = date('m-d',time());//获取当天日期
$birthday = "11-17";//生日
$mony = 100;
$discount=0.8;
if($today==$birthday)
{
$mony = $mony*$discount;//打八折
}else{
$mony = $mony;//不打折
}
echo $mony
2019-11-07
举报