Check if current time is 1 minute past previously-saved time in PHP -
i'm saving time variable called $time, using $time = time()
, , later on, need able check see if current time greater 1 minute comparing current time previously-saved time.
how can in php?
you can save time database or session, how check
$time = time(); if((time() - $time) > 60){ echo 'past 1 minute'; }
Comments
Post a Comment