note 118049 added to language.oop5.cloning
| From: | jason at jewelrysupply dot com | Date: | Thu, 24 Sep 2015 21:44:41 +0000 |
| Subject: | note 118049 added to language.oop5.cloning | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203849@lists.php.net to get a copy of this message | ||
@DPB
I believe the two functions are not quite the same. The serialize followed by deserialize method is
the way I've done deep cloning in other languages (bypasses any weird clone function behavior
and ensures you have a no-strings-attached copy of the object).
----
Server IP: 72.52.91.14
Probable Submitter: 66.60.137.106
----
Manual Page -- http://php.net/manual/en/language.oop5.cloning.php
Edit -- https://master.php.net/note/edit/118049
Del: integrated -- https://master.php.net/note/delete/118049/integrated
Del: useless -- https://master.php.net/note/delete/118049/useless
Del: bad code -- https://master.php.net/note/delete/118049/bad+code
Del: spam -- https://master.php.net/note/delete/118049/spam
Del: non-english -- https://master.php.net/note/delete/118049/non-english
Del: in docs -- https://master.php.net/note/delete/118049/in+docs
Del: other reasons-- https://master.php.net/note/delete/118049
Reject -- https://master.php.net/note/reject/118049
Search -- https://master.php.net/manage/user-notes.php