note 79731 deleted from function.strtotime by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 08:01:07 +0000 |
| Subject: | note 79731 deleted from function.strtotime by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196727@lists.php.net to get a copy of this message | ||
Note Submitter: xini [at] gmx [dot] de
----
Be careful with spaces between the "-" and the number in the argument, for some
PHP-installations...
<?php
strtotime("- 1 day"); // ...with space - will ADD a day
strtotime("-1 day"); // ...works perfect
?>