PHP: Date larger than current date

后端 未结 7 881
梦毁少年i
梦毁少年i 2020-12-01 18:02

I have this code:

$curdate = \'22-02-2011\';

$mydate = \'10-10-2011\';                     

if($curdate > $mydate)
{
    echo \'

        
7条回答
  •  我在风中等你
    2020-12-01 18:42

    $row_date = strtotime($the_date);
    $today = strtotime(date('Y-m-d'));
    
    if($row_date >= $today){
         -----
    }
    

提交回复
热议问题