I have an array
array:2 [▼
0 => array:2 [▼
0 => 159
1 => 158
]
1 => array:2 [▼
0 => 159
1 => 158
]
2 => array:2 [▼
0 => 158
1 => 159
]
]
I want to delete the duplicate ones and the duplicate in reverse order. For example index 0 and index 1 has the same values 159 and 158 also same in order like 0 => 159 and 1 => 158 . I want to delete either index 1 or 0. Since it is same. And if you noticed index 2. it has the same value only difference is the order 0 => 158 and 1 => 159 I also want to delete this since it is the same pair values. How can I do that if that array is $remove_arr
So since I will delete index 2 and either index 0 or 1 there should only be one index left.