我有一组数组
Array (
[0] => 0
[1] => 1
[2] => 1
[3] => -1
[4] => 3
[5] => 0
[6] => 2
[7] => 3
[8] => -2
[9] => 2
[10] => 0
[11] => 1
[12] => 1
[13] => 2
[14] => 5
[15] => 0 )
我想删除这个数组的值:
Array (
[0] => 3
[1] => 1
[2] => 2
[3] => -1
)
但我想保留一些重复的数据..我只想删除第二个数组的一个出现..
结果将是这样的: 预期结果
Array (
[0] => 0
[2] => 1
[4] => 3
[5] => 0
[6] => 2
[8] => -2
[10] => 0
[11] => 1
[12] => 1
[13] => 2
[14] => 5
[15] => 0 )
我该怎么做?.. array_unique 和 array_diff 正在删除第一个数组中所有出现的值..