Есть массив объектов вида:
CODE ( htmlphp):
скопировать код в буфер обмена
( [0] => Tbl2 Object ( [tableFields :protected ] => Array ( [id] => 1 [some_field] => test1 [tables] => Tbl Object ( [tableFields :protected ] => Array ( [id] => 4 [name] => TEST INSERT 2 [text] => выборка по id=4 [fk_tbl2] => 1 ) ) ) ) [1] => Tbl2 Object ( [tableFields :protected ] => Array ( [id] => 2 [some_field] => test2 [tables] => Tbl Object ( [tableFields :protected ] => Array ( [id] => 2 [name] => TEST8 [text] => выборка по id=2 [fk_tbl2] => 2 ) ) ) ) [2] => Tbl2 Object ( [tableFields :protected ] => Array ( [id] => 2 [some_field] => test2 [tables] => Tbl Object ( [tableFields :protected ] => Array ( [id] => 3 [name] => TEST INSERT [text] => [fk_tbl2] => 2 ) ) ) ) )
Никак не могу привести его к виду:
CODE ( htmlphp):
скопировать код в буфер обмена
( [0] => Tbl2 Object ( [tableFields :protected ] => Array ( [id] => 1 [some_field] => test1 [tables] => Tbl Object ( [tableFields :protected ] => Array ( [id] => 4 [name] => TEST INSERT 2 [text] => выборка по id=4 [fk_tbl2] => 1 ) ) ) ) [1] => Tbl2 Object ( [tableFields :protected ] => Array ( [id] => 2 [some_field] => test2 [0] => Tbl Object ( [tableFields :protected ] => Array ( [id] => 2 [name] => TEST8 [text] => выборка по id=2 [fk_tbl2] => 2 ) ), [1] => Tbl Object ( [tableFields :protected ] => Array ( [id] => 3 [name] => TEST INSERT [text] => [fk_tbl2] => 2 ) ) ) ) )
Буду признателен за любую помощь.
|