note 48014 deleted from function.strtotime by googleguy

From: Date: Wed, 19 Jun 2013 05:58:43 +0000
Subject: note 48014 deleted from function.strtotime by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-195271@lists.php.net to get a copy of this message
Note Submitter: bishop ---- Be warned that strtotime() tries to "guess what you meant" and will successfully parse dates that would otherwise be considered invalid: <?php $ts = strtotime('1999-11-40'); echo date('Y-m-d', $ts); // outputs: 1999-12-10 ?> It is my understanding (I have not verified) that the lexer for strtotime() has been rewritten for PHP5, so these semantics may only apply for PHP4 and below.

« previous php.notes (#195271) next »