PHP比较两个时间不否是同一天 发表评论 PHP比较两个时间不否是同一天 if (strcmp(date('Y-m-d',strtotime($dt)), date("Y-m-d",strtotime('2015-12-18'))) == 0 )