note 114814 added to datetime.modify
| From: | admin at wmfoi dot com dot br | Date: | Tue, 08 Apr 2014 20:22:02 +0000 |
| Subject: | note 114814 added to datetime.modify | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199229@lists.php.net to get a copy of this message | ||
The changelog says: "5.3.0 - Changed the return value on success from NULL to DateTime".
That means that you can't do a Fluid Interface design with it in PHP 5.2.
In other words, this will not work in 5.2:
<?php
$DateTime=new DateTime();
echo $DateTime->modify('+1 day')->format('d');
?>
----
Server IP: 72.52.91.14
Probable Submitter: 177.182.174.144
----
Manual Page -- http://php.net/manual/en/datetime.modify.php
Edit -- https://master.php.net/note/edit/114814
Del: integrated -- https://master.php.net/note/delete/114814/integrated
Del: useless -- https://master.php.net/note/delete/114814/useless
Del: bad code -- https://master.php.net/note/delete/114814/bad+code
Del: spam -- https://master.php.net/note/delete/114814/spam
Del: non-english -- https://master.php.net/note/delete/114814/non-english
Del: in docs -- https://master.php.net/note/delete/114814/in+docs
Del: other reasons-- https://master.php.net/note/delete/114814
Reject -- https://master.php.net/note/reject/114814
Search -- https://master.php.net/manage/user-notes.php