I need to compare values from some arrays. This array is multi dimensional and I need to compare the arrays inside.
Here the dump:
php
array (size=4)
1 =>
array (size=3)
0 => string '96' (length=2)
1 => string '90' (length=2)
2 => string '91' (length=2)
2 =>
array (size=3)
0 => string '96' (length=2)
1 => string '90' (length=2)
2 => string '91' (length=2)
3 =>
array (size=4)
0 => string '96' (length=2)
1 => string '90' (length=2)
2 => string '91' (length=2)
3 => string '98' (length=2)
4 =>
array (size=4)
0 => string '96' (length=2)
1 => string '90' (length=2)
2 => string '91' (length=2)
3 => string '98' (length=2)
I wanted to use something like array_diff
, to compare the different arrays but... even if it seems stupid, I don't know how to do it.
I guess I expect to "extract" the 4 array, to be able to compare them.
Is there somebody that can explain me a good way to do this ? Thank you very much.