note 79731 modified in function.strtotime by danbrown

From: Date: Sun, 09 Jan 2011 17:02:16 +0000
Subject: note 79731 modified in function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175576@lists.php.net to get a copy of this message
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 ?> --was-- 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 ?> http://php.net/manual/en/function.strtotime.php

« previous php.notes (#175576) next »