[PHP] d-day 계산, 디데이 계산 함수
// D-day 계산
function wz_d_day($d_date) {
$t_date = date('Y-m-d',time());
$d_day = intval((strtotime($t_date) - strtotime($d_date)) / 86400);
return $d_day;
}