note 36955 added to ref.classobj
| From: | Euroman at rn2 dot php dot net | Date: | Tue, 28 Oct 2003 21:45:03 +0000 |
| Subject: | note 36955 added to ref.classobj | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59437@lists.php.net to get a copy of this message | ||
It would be fantastic if there were a way to convert a stdClass into another named class. (For
instance when you get an object back from a MySql call with fetch_object). You can hack it by
serialising, editting the string and then unserialising, but this is nasty and slow - a proper
function call to do this would be excellent.
----
Manual Page -- http://www.php.net/manual/en/ref.classobj.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36955
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36955&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36955&report=yes
Search -- http://master.php.net/manage/user-notes.php