* 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

Reply via email to