dotwc62080 2013-02-12 06:23
浏览 98
已采纳

如何使用php查找一个月中一周的周数

hai i found this PHP get number of week for month quiet helpful but it makes some error on all months start on Sundays for example "2013-09-01" gives week number as 2 (actually its '1').. any one got some idea?? please share thanks in advance.....

  • 写回答

3条回答 默认 最新

  • dpwle46882 2015-01-08 20:30
    关注

    Add strtotime function to it.. Works fine.. date("W",strtotime("2013-09-01"));

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?