Tutorial Time Ago Function

This can be used for comments and other from of communication to tell the time ago instead of the exact time which might not be correct to s...

This can be used for comments and other from of communication to tell the time ago instead of the exact time which might not be correct to some one in another time zone.
The function only uses unix time stamp like the result of time();
Technique #1
function ago($time)
{
$periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade");
$lengths = array("60","

Hot in Week

Popular

Archive

item