/ Published in: PHP
Php check for the top of the hour
Expand |
Embed | Plain Text
<?php $minutes = date('i'); // We'll go by the minutes of the hour so that we don't have to compare to all 24 possible outcomes if($minutes == '00'){ // if the minutes are 0 which should be the top of the hour } else{ } ?>
You need to login to post a comment.
