note 27425 deleted from function.strtotime by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 19:44:42 +0000 |
| Subject: | note 27425 deleted from function.strtotime by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56181@lists.php.net to get a copy of this message | ||
Note Submitter: pnavrodt@vme.de
----
if(strtotime("invalid date") > strtotime("18 years ago"))
The returnvalue of strtotime() with an invalid date returns -1.
Comparing with numbers greater than -1 the result is funnily true.