$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-12-07 06:19:04
$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 "过期"; }