I have an array like this
Array
(
[0] => Array
(
[0] => 83
[1] => 82
[2] => 81
)
[1] => Array
(
[0] => 81
[1] => 82
[2] => 83
[3] => 100
[4] => 101
[5] => 102
[6] => 103
[7] => 104
[8] => 105
)
)
and I want to delete any values from the first array that are not equal to this array
Array
(
[0] => 83
[1] => 82
[2] => 81
)
But i want to keep the same structure as the first array. So i would end up with something like this
Array
(
[0] => Array
(
[0] => 83
[1] => 82
[2] => 81
)
[1] => Array
(
[0] => 81
[1] => 82
[2] => 83
)
)
What is the best way to achieve this?