Convert an array in an object instance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 recover the object in the inverse way, so... is there any manner to
do this?

Thanks a lot in advance,

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux