$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 "过期"; }
时间: 2024-10-05 22:04:57
$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 "过期"; }