Last active
August 29, 2015 14:11
-
-
Save alfredfrancis/a69c6388b78de04b56ba to your computer and use it in GitHub Desktop.
expire at 24:00
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 | |
$ts1 = strtotime(str_replace('/', '-', '24:00:00')); | |
$ts2 = strtotime(str_replace('/', '-', date('H:i:s'))); | |
$diff = (abs($ts1 - $ts2) * 1000); | |
setcookie('expire', 'test',+$diff); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment