Re: bless function: a better aproach

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

 



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



Curt
-- 
Quoth the Raven, "Nevermore."

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