Tag Archives: counter

Simple PHP Code show, How many Days Remain to Holiday

$target = mktime(0, 0, 0, 12, 25, 2014);
 //within above bracket you need give (0, 0, 0, Month, Date, Year )
$today = time() ;
$difference =($target-$today) ;
$days =(int) ($difference/86400) ;
print "Holiday is in $days days";

This PHP code automatically count and illustrate how many Days remain to your holiday

click this link to view online how this code works http://codepad.org/Je3RTysF