note 117572 added to datetime.add
| From: | Anthony | Date: | Wed, 01 Jul 2015 10:55:55 +0000 |
| Subject: | note 117572 added to datetime.add | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203006@lists.php.net to get a copy of this message | ||
If you're using PHP >= 5.5, instead of using "glavic at gmail dot com"'s
DateTimeEnhanced class, use the built in DateTimeImmutable type. When you call
DateTimeImmutable::add() it will return a new object, rather than modifying the original
----
Server IP: 72.52.91.14
Probable Submitter: 81.134.31.43
----
Manual Page -- http://php.net/manual/en/datetime.add.php
Edit -- https://master.php.net/note/edit/117572
Del: integrated -- https://master.php.net/note/delete/117572/integrated
Del: useless -- https://master.php.net/note/delete/117572/useless
Del: bad code -- https://master.php.net/note/delete/117572/bad+code
Del: spam -- https://master.php.net/note/delete/117572/spam
Del: non-english -- https://master.php.net/note/delete/117572/non-english
Del: in docs -- https://master.php.net/note/delete/117572/in+docs
Del: other reasons-- https://master.php.net/note/delete/117572
Reject -- https://master.php.net/note/reject/117572
Search -- https://master.php.net/manage/user-notes.php