看板 PHP 關於我們 聯絡資訊
※ 引述《beautifulin (要堅強喔!)》之銘言: : $testdate='1999-08-08'; : if(date("Y-m-d")>=$testdate) : echo 'true'; : else : echo 'false'; : 是本來就可以比較嗎?不知道是用什麼去比較的? : 可是換好幾個$testdate試驗幾次結果都是正確的...... : 原本以為不行比的 @@ : 這樣是正確的嗎? 轉成time來比較呢^^ http://tw.php.net/manual/en/function.strtotime.php -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.26.34.105