Re: [PHP] bless function: a better aproach

2004-10-28 Thread raditha dissanayake
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 ();

[PHP] bless function: a better aproach

2004-10-27 Thread 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_. ? function obj2array ( $Instance ) { $clone = (array) $Instance; $rtn = array ();

Re: [PHP] bless function: a better aproach

2004-10-27 Thread Curt Zirzow
* 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 =