How could set a date and get a countdown in PHP? For example if I set the date as 3 December 2PM it would tell me how many days and hours are remaining.
No need for
PHP 5.3 allows this:
$dt_end = new DateTime('December 3, 2009 2:00 PM'); $remain = $dt_end->diff(new DateTime()); echo $remain->d . ' days and ' . $remain->h . ' hours';