dqdes60666 2013-06-27 06:22
浏览 84
已采纳

PHP strtotime()('Wednesday')和('next Wednesday')之间有所不同

The problem I'm having is in trying to look up wednesday of next week.

$next_wednesday = strtotime("next Wednesday 19:00:00"); 
$this_wednesday = strtotime("Wednesday 19:00:00");

The values for $next_wednesday and $this_wednesday come out the same

  • 写回答

4条回答 默认 最新

  • duanniu3385 2013-06-27 06:38
    关注

    Use

    $this_wednesday = strtotime("Wednesday 19:00:00");
    $next_wednesday = strtotime("+1 week Wednesday 19:00:00");
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?