我有一个数组
Array
(
[0] => Array
(
[id_session] => 174
[id_participant] => 191
[participant] => A[mail1@xy.com]
)
[1] => Array
(
[id_session] => 175
[id_participant] => 177
[participant] => B[mail2@xy.com]
)
[2] => Array
(
[id_session] => 175
[id_participant] => 189
[participant] => C[mail3@xy.com]
)
)
我想获取 json 或多个暗淡数组
Array
(
[174] => Array([191]=>A[mail1@xy.com]),
[175] => Array
(
[177] => B[mail2@xy.com],
[189] => C[mail3@xy.com]
)
)
任何人都可以帮助我如何做到这一点?
谢谢