Created
May 13, 2016 00:57
-
-
Save turtlix/fd840e8e3aa8f58a7105b4e99503e93f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(strtotime(dateString) > time()) { | |
# date is in the future | |
} | |
if(strtotime(dateString) < time()) { | |
# date is in the past | |
} | |
if(strtotime(dateString) == time()) { | |
# date is right now | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment