Re: [PHP-DEV] Convert an array in an object instance

2004-10-26 Thread Francisco M. Marzoa Alonso
Sorry, I've ask this question on general but no one seems to know if there's a solution for it. In fact, its possible to do something as: $MyObject = new MyClass (); $MyArray = (array) $MyObject; $MyObject2 = (object) $MyArray; But the original class of the object is lost -$MyObject2 appears as a

Re: [PHP-DEV] Convert an array in an object instance

2004-10-25 Thread Derick Rethans
On Mon, 25 Oct 2004, Francisco M. Marzoa Alonso wrote: > Hi, > > Is it possible to convert an array in an object instance? Please use the [EMAIL PROTECTED] mailinglist for user support questions, this is the wrong list. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://x

[PHP-DEV] Convert an array in an object instance

2004-10-25 Thread Francisco M. Marzoa Alonso
Hi, Is it possible to convert an array in an object instance? I can convert an object in an array as follows: $Test = new MyClass (); $TestArray = (array) $Test; Then I've an array with all members of the object $Test, but it seems that I cannot simply do: $TestObject = (MyClass) $TestArray; To r