我有这个用户 ID 数组。我想将子用户 ID 数组合并到父数组中的一个数组中。[0] => Array ( [0] => Array ( [userid] => 1610 ) [1] => Array ( [userid] => 1614 ) [2] => Array ( [userid] => 1616 ) )[1] => Array ( [0] => Array ( [userid] => 1610 ) [1] => Array ( [userid] => 1614 ) [2] => Array ( [userid] => 1616 ) [3] => Array ( [userid] => 1618 ) )我想要的结果看起来像......[0] => Array ( [userids] => Array ( [0] => 1610 [1] => 1614 [2] => 1616 ))[1] => Array ( [userids] => Array ( [0] => 1610 [1] => 1614 [2] => 1616 [3] => 1618 ))
1 回答
- 1 回答
- 0 关注
- 106 浏览
添加回答
举报
0/150
提交
取消