drainfixer
New Member
I have an multiple array ($result) which has objects in it. The array was returned from a function (made by someone I can't communicate now).When I test the array with print_r($result[0]), it turns out to have embedded objects.\[code\]ABC Object ( [p1] => P1 Object ( [p1-1] => P1_property1 [p1-2] => P1_property2 [p1-3] => P1_property3 ) [p2] => ABC_property2 [p3] => ABC_property3 [p4] => ABC_property4)\[/code\]How can I fetch the Strings \[code\]"P1_property1"\[/code\] to \[code\]"P1_property3"\[/code\] and \[code\]"ABC_property2"\[/code\] to \[code\]"ABC_property4"\[/code\]?I'm new to PHP, waiting for help!