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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -