Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如果今天是月10日、月15日、月20日之前_Php_Html - Fatal编程技术网

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)好的,看起来很简单。那么你尝试了什么,哪里卡住了?请发帖。非常感谢,我的朋友。