大家好,我是php的新手,我有一些像这样的多维数组
Array
(
[0] => Array
(
[id] => 100
[user_id] => 200
)
[1] => Array
(
[id] => 100
[user_id] => 300
)
[2] => Array
(
[id] => 100
[user_id] => 200
)
[3] => Array
(
[id] => 100
[user_id] => 400
)
[4] => Array
(
[id] => 100
[user_id] => 200
)
)
我想删除重复的值,例如array[0]
和array[2]
以及array[4]
。我的意思是我需要这样的最终输出
Array
(
[0] => Array
(
[id] => 100
[user_id] => 200
)
[1] => Array
(
[id] => 100
[user_id] => 300
)
[2] => Array
(
[id] => 100
[user_id] => 400
)
)
请帮助我不知道怎么做php。