我希望能够在两个日期之间显示一些内容或回放一些文本。
对于一个产品的促销,在给定的日期之间,价格将会降低,并且在促销之后,价格将回到原来的成本。
这个是可能的吗?
干杯
哑光
发布于 2011-11-07 09:46:38
$current_time = time();
if($current_time > $start_time && $current_time < $end_time){
// Whatever you want during the time interval
}else{
// Whatever you want outside the time interval
}https://stackoverflow.com/questions/8031898
复制相似问题