//Example data
$current_time = 1318075950;
$unbanned_time = $current_time + strtotime('+1 minute');
if ($unbanned_time > $current_time) {
$th1is = date('Y-m-d H:i:s', $unbanned_time) - date('Y-m-d H:i:s', $current_time);
echo date('Y-m-d H:i:s', $th1is);
我想輸出多長時間直到用戶被解除...年,月,日,小時,分和秒......但是這給了我一些奇怪的結果..剩下多久? php + date
什麼是你所得到的結果設置? – afuzzyllama
1970-01-01 00:58:26 – John