Erm... I've seen there're some aspects to perform... it fails because
the name of the members is changed during conversion to the array. It
puts the class name using '\0' (0 is a zero, not a caps 'o') character
as separator before member name in private and an '*' in protected.
It's not an unaff
Ok, I've write a function that emulates the Perl's bless one. It works
pretty well.
The idea comes to me when Rob suggest to parse the serialized data. I
think this is better -or at least faster- than parsing all serialized
data to modify object values: Just convert the object to an array,
mod
Hi,
Is it possible to convert an array in an object instance?
I can convert an object in an array as follows:
$Test = new MyClass ();
$TestArray = (array) $Test;
Then I've an array with all members of the object $Test, but it seems
that I cannot simply do:
$TestObject = (MyClass) $TestArray;
To rec
3 matches
Mail list logo