Hi,
This should be an easy one but the answer is alluding me this morning. I
have a data structure:
$myobject->100->property1;
$myobject->100->property2;
$myobject->101->property1;
$myobject->101->property2;
I'm attempting to set a property like this however it does not work. I
suspect it's because my ID is numeric. Am I able to do this and if not
want is the best workaround?
foreach ($myobject as $id > info) {
$myobject->{$id}->property3 1;
}
regards
Aaron
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]