我有这两个阵列:如何将关联数组合并到多维数组的单个关联行中?
array1[1]["associativeKey1"]
["associativeKey2"]
[2]["associativeKey1"]
["associativeKey2"]
...
array2["associative"]
我生成用于ARRAY1每个号码,NOT associativeKey,只有数字单个数组2。 我想要合并这些:
array1[1]["associativeKey1"]["associativeKey2"][content of array2 with all its keys]
[2]["associativeKey1"]["associativeKey2"][content of array2 with all its keys]
你能帮我吗? 非常感谢!
有ARRA合并有很多方法可以做到这一点。你为什么不向我们展示一个真实的案例?解释如何做以及为什么会更好。 –