note 80795 deleted from function.strtotime by levim
| From: | levim@php.net | Date: | Fri, 12 Jul 2013 16:38:49 +0000 |
| Subject: | note 80795 deleted from function.strtotime by levim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195595@lists.php.net to get a copy of this message | ||
Note Submitter: frank at crop-circle dot net
----
I found some different behaviors between PHP 4 and PHP 5. I have tested this on just two versions:
PHP Version 5.2.3-1ubuntu6.3 and PHP Version 4.3.10-22.
Example 1:
<?php
$ts2 = strtotime("1st Thursday", $ts1)
var_dump($ts2)
// this works in PHP 4
// PHP 5 dumps bool(false)
?>
Example 2:
<?php
$ts2 = strtotime("first Thursday", $ts1)
var_dump($ts2)
// this works in PHP 4
// also works in PHP 5
?>