I would like to compare two arrays excluding elements partially equal.
I have reached the following result:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
21 22 23 24 25
The desired result is:
21 22 23 24 25
Attempt:
$aa = array("1 2 3 4 5", "6 7 8 9 10", "11 12 13 14 15", "16 17 18 19 20", "21 22 23 24 25");
$bb = array("1 2", "6 7 8", "11 12 13 14", "16 17 18 19 20");
$final = array_diff($aa, $bb);
print_r($final)