note 116397 added to language.types.type-juggling

From: Date: Sat, 27 Dec 2014 13:15:33 +0000
Subject: note 116397 added to language.types.type-juggling
Groups: php.notes 
Request: Send a blank email to php-notes+get-201260@lists.php.net to get a copy of this message
The code listed in some of the comments here for supposedly "casting" from one class to another using unserialize/serialize does not actually change the class of the existing object; it creates a new object. So it's not the same as a cast. ---- Server IP: 72.52.91.14 Probable Submitter: 173.69.145.144 ---- Manual Page -- http://php.net/manual/en/language.types.type-juggling.php Edit -- https://master.php.net/note/edit/116397 Del: integrated -- https://master.php.net/note/delete/116397/integrated Del: useless -- https://master.php.net/note/delete/116397/useless Del: bad code -- https://master.php.net/note/delete/116397/bad+code Del: spam -- https://master.php.net/note/delete/116397/spam Del: non-english -- https://master.php.net/note/delete/116397/non-english Del: in docs -- https://master.php.net/note/delete/116397/in+docs Del: other reasons-- https://master.php.net/note/delete/116397 Reject -- https://master.php.net/note/reject/116397 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201260) next »