我这里有数据:
Array
(
[3] => Array
(
[SiteID] => 3
[Balance] => 19000.00
[MinBalance] => 100000.00
[MaxBalance] => 1000000.00
[OwnerAID] => 17
[GroupID] => 1
[Deposit] => 1500
[Redemption] => 1000
[Reload] => 1000
)
[3] => Array
(
[SiteID] => 3
[Balance] => 19000.00
[MinBalance] => 100000.00
[MaxBalance] => 1000000.00
[OwnerAID] => 211
[GroupID] => 1
[Deposit] => 1500
[Redemption] => 1000
[Reload] => 1000
)
[4] => Array
(
[SiteID] => 4
[Balance] => 19000.00
[MinBalance] => 100000.00
[MaxBalance] => 1000000.00
[OwnerAID] => 17
[GroupID] => 1
[Deposit] => 1500
[Redemption] => 1000
[Reload] => 1000
)
[4] => Array
(
[SiteID] => 4
[Balance] => 19000.00
[MinBalance] => 100000.00
[MaxBalance] => 1000000.00
[OwnerAID] => 12
[GroupID] => 1
[Deposit] => 1500
[Redemption] => 1000
[Reload] => 1000
)
[5] => Array
(
[SiteID] => 2
[Balance] => 19000.00
[MinBalance] => 100000.00
[MaxBalance] => 1000000.00
[OwnerAID] => 11
[GroupID] => 1
[Deposit] => 1500
[Redemption] => 1000
[Reload] => 1000
)
)
)
然后我需要创建一个名为“CorpAID”的新密钥,指向拥有相同 SiteID 的 OwnerAID 列表,这意味着 SiteID 可以由一个或多个 OwnerAID 拥有。结果应如下所示:
Array
(
[0]=> Array
(
[SiteID] => 3
[Balance] => 19000.00
[MinBalance] => 100000.00
[MaxBalance] => 1000000.00
[OwnerAID] => 17
[GroupID] => 1
[Deposit] => 1500
[Redemption] => 1000
[Reload] => 1000
[CorpAID] => Array
(
[0] => 17
[1] => 211
)
)
[1]=> Array
(
[SiteID] => 3
[Balance] => 19000.00
[MinBalance] => 100000.00
[MaxBalance] => 1000000.00
[OwnerAID] => 17
[GroupID] => 1
[Deposit] => 1500
[Redemption] => 1000
[Reload] => 1000
[CorpAID] => Array
(
[0] => 12
[1] => 17
)
)
有可能做到吗?请帮助我,并以正确的方式指导我。提前谢谢你。