I've a case where multiple arrays need to be compared.There is one master array that contains all the elements that the child arrays have and also some extra elements.
In below example, $a is the master array and $b, $c are child arrays.
I need to compare these arrays and get the list of those extra elements in $a that are not present in $b and $c.
Practically, in my case there are 10 child arrays and a master array.
$a="dhaw","roh","kohl","faf","abd","steyn","gupt","baz","kane","benn","brendn","joyc"
$b="roh","dhaw","kohl"
$c="steyn","abd","faf","roh","dhaw"
-containsor-notcontainsoperator for the subject array and an array element you want to testCompare-Objectsseems to support an array of-DifferenceObjects.