![](https://img.php.cn/upload/article/000/023/547/bfbb037ecfc21bd9d68d0fa796718b82-0.png)
strtotime:将英文文本日期时间解析为 Unix 时间戳
<?php if(time()<strtotime(Configure::read("Shuang_START"))):?> alert('活动尚未开始~');return; <?php endif;?> <?php if(time()>strtotime(Configure::read("Shuang_END"))):?> alert('活动已经结束~');return; <?php endif;?>
以上就是如何判断时间是否开始 的详细内容,更多请关注php中文网其它相关文章!
![php中文网最新课程二维码](/static/images/article_wechat2021.jpg?1111)
声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论