Jun 6, 2011

A Simple Time-Left PHP Code

PHP time left
function time_left($integer)
{ 

/*Returns a string of the amount of time the integer in seconds.

 $timeleft=time_left(86400); 

 $timeleft='1 day';

Will not return anything higher than weeks. False if $integer=0 or fails.