Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13500 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22318 invoked by uid 1010); 25 Oct 2004 11:30:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20878 invoked from network); 25 Oct 2004 11:30:03 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by pb1.pair.com with SMTP; 25 Oct 2004 11:30:03 -0000 Received: (qmail 7462 invoked by uid 65534); 25 Oct 2004 11:30:00 -0000 Received: from 55.Red-213-4-20.pooles.rima-tde.net (EHLO [10.10.0.21]) (213.4.20.55) by mail.gmx.net (mp011) with SMTP; 25 Oct 2004 13:30:00 +0200 X-Authenticated: #12441595 Message-ID: <417CE408.4020108@gmx.net> Date: Mon, 25 Oct 2004 13:31:20 +0200 User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Convert an array in an object instance From: fmmarzoa@gmx.net ("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 recover the object in the inverse way, so... is there any manner to do this? Thanks a lot in advance,