4,251
社区成员
发帖
与我相关
我的任务
分享
function getMonday($d){
if (date('D',strtotime($d))=='Mon'){
return date('Y-m-d',strtotime($d));
}else {
return date('Y-m-d' , strtotime('next monday' , strtotime($d)));
}
}
echo getMonday('2011-08-02');