hello world!
i am trying to compare multiple 1d arrays (array amount will always vary) to a master array.
this is a pretty complex comparison not sure where to start - especially when comparing any number of arrays
thanks in advance!
i am trying to compare multiple 1d arrays (array amount will always vary) to a master array.
[ autoit ]
Global $master_array[4] = ["3", "red", "yellow", "green"] Global $compare_array1[8] = ["7", "red", "purple", "magenta", "orange", "blue", "yellow", "darkorange"] Global $compare_array2[10] = ["9", "purple", "brickred", "red", "white", "green", "lightblue", "blue", "black", "gray"] Global $compare_array3[7] = ["6", "turquoise", "brown", "magenta", "mustard", "blue", "red"] Global $compare_array4[9] = ["8", "indigo", "lavender", "purple", "red", "gray", "green", "blue", "cyan"] [b]similarities (all arrays have it)[/b] RED - $master_array, $array1, $array2, $array3, $array4 [b]differences (not found in master array and more than one array has it)[/b] PURPLE - $array1, $array2, $array4 BLUE - $array1, $array2, $array3, $array4 etc.. [b]differences (not found in master array and only 1 array has it)[/b] MAGENTA - $array1 ORANGE - $array1 DARKORANGE - $array1 BRICKRED - $array2 WHITE - $array2 etc...
this is a pretty complex comparison not sure where to start - especially when comparing any number of arrays
thanks in advance!