猿问

PHP 时间函数

使用 PHP 判断 一个时间 与 当前时间 相比 是否超过了 6小时呢

慕的地10843
浏览 458回答 2
2回答

慕神8447489

$time_6hours_ago = strtotime('-6hour'); #//6小时前的时间戳 $compare_time; //需要判断的时间戳 if($time_6hours_ago > $compare_time){ #//超过6小时 }
随时随地看视频慕课网APP
我要回答