If my code looks like:
if($seconds < 60)
$interval = "$seconds seconds ago";
else
if($seconds < 3600)
$interval = floor($seconds / 60) . "minutes ago";
else
if($seconds < 86400)
$interval = floor($seconds / 3600) . "hours ago";
else
$interval = floor($seconds / 86400) . "days ago";
How would I get rid of it saying stuff like:
1 Days ago. 1 Years ago. 1 Minutes ago. 1 Hours ago.
Thanks :)