php 判断时间是否超过

   $str="2014-10-11";
   echo "".strtotime($str);
   echo "<br/>";
   echo "".time('Y-m-d');
    echo "<br/>";
   if(strtotime($str)>time('Y-m-d')){
        echo "未过期";
   }else{
   	   echo "过期";
   }
   

  

posted @ 2014-10-13 10:53  麦田守望者~  阅读(3054)  评论(0编辑  收藏  举报