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
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
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