我有一个像这样的多维数组
Array
(
[59] => stdClass Object
(
[id] => 59
[parent_id] => 0
[name] => detalles de los
[order] => 1
)
[60] => stdClass Object
(
[id] => 60
[parent_id] => 0
[name] => Fechas varias
[order] => 2
)
[62] => stdClass Object
(
[id] => 62
[parent_id] => 0
[name] => seccion de fechas dependientes
[order] => 3
)
[63] => stdClass Object
(
[id] => 6
[parent_id] => 0
[name] => tabbbbb
[order] => 5
[children] => Array
(
[61] => stdClass Object
(
[id] => 61
[parent_id] => 63
[name] => Números varios
[order] => 5
)
[70] => stdClass Object
(
[id] => 70
[parent_id] => 63
[name] => tablas22
[order] => 6
[children] => Array
(
[58] => stdClass Object
(
[id] => 58
[parent_id] => 70
[name] => datos demograficos
[order] => 4
)
)
)
)
)
)
我想删除条目 70
[70] => stdClass Object
(
[id] => 70
[parent_id] => 63
[name] => tablas22
[order] => 6
但我希望孩子 [58] 成为 [61] 的孩子,而 [70] 成为 [61] 的孩子
我该怎么做?我尝试取消设置,但它似乎不起作用