Php 如果今天是月10日、月15日、月20日之前
如果当前日期在一个月的某一天之前,我只想对元素应用不同的类。我想随着这个月的进展逐步增加能见度,以显示紧迫性Php 如果今天是月10日、月15日、月20日之前,php,html,Php,Html,如果当前日期在一个月的某一天之前,我只想对元素应用不同的类。我想随着这个月的进展逐步增加能见度,以显示紧迫性 if today <= 10th of the current month else if today <= 15th of the current month else if today <= 20th of the current month 如果今天试试这个: $dayOfMonth = date("d"); if($dayOfMon
if today <= 10th of the current month
else if today <= 15th of the current month
else if today <= 20th of the current month
如果今天试试这个:
$dayOfMonth = date("d");
if($dayOfMonth <=10){
}...
$dayOfMonth=日期(“d”);
如果($dayOfMonth)好的,看起来很简单。那么你尝试了什么,哪里卡住了?请发帖。非常感谢,我的朋友。