I have several arrays ($ result) in which there are objects. The array was returned from a function (made by someone that I cannot communicate with now).
When I test an array using print_r ($ result [0]), it has built-in objects.
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
)
How can I get strings "P1_property1"before "P1_property3"and "ABC_property2"before "ABC_property4"?
I am new to PHP, waiting for help!
source
share