Re: bless function: a better aproach

From: Date: Thu, 28 Oct 2004 09:04:57 +0000
Subject: Re: bless function: a better aproach
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-200527@lists.php.net to get a copy of this message
Curt Zirzow wrote:
* Thus wrote Francisco M. Marzoa Alonso:
Giving it a round, this seems to be a better aproach than the previous one. It has the advantage of provide direct access to the original array obtained from casting without boring about ___FAKE_KEYS_. <? ... $Obj = new TestClass (); //$Clone = (array) $Obj; $Clone = obj2array ( $Obj );
I still dont see why a simple: $obj = new TestClass(); $data = serialize($obj); $Clone = unserialize($data); Cant doesn't work for you. ah so that what the OP is trying to do!
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.

« previous php.general (#200527) next »