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 ();
Ok, I think I've got it now. The code is autoexplicative, the only
restriction is that the object must be converted to an array using the
function obj2array instead of a direct cast. There's another ways to do
this without the needless of that obj2array function, but I think this
is not really
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 ();
* 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 =
4 matches
Mail list logo