Array
(
[0] => Array
(
[0] => 4937
)
[1] => Array
(
[0] => 4937
[1] => 4941
)
[2] => Array
(
[0] => 4937
[1] => 5610
)
[3] => Array
(
[0] => 4937
[1] => 5610
[2] => 4943
)
[4] => Array
(
[0] => 108
)
)
Each array is a list of categories followed by its sub categories and sub sub categories. I want to show only original patterns of numbers. so I want to remove array 2 because that pattern of numbers already exists in array 3, but I want keep array 1 because the number that follows 4937 is different to array 3. The end result should be this,
Array
(
[1] => Array
(
[0] => 4937
[1] => 4941
)
[3] => Array
(
[0] => 4937
[1] => 5610
[2] => 4943
)
[4] => Array
(
[0] => 108
)
)
4943instead of108. What should the behavior be? Should that array be removed?