I have two identical lists of things on a form . The applicant can select any of the attributes in either column but can't select the same attribute in both. I have it setup so that lists put out an array to the processing script.
The thing that I need to do is to compare the two arrays, find out if any duplication has been made in the second array versus the first array. Then if there has been any duplication, remove it from the second array so that if they select the same value in both lists that it will only be in the first array and removed from the second one.
PS I only have php4 to work with.
sample data to work with
first array (1,2,3,6,7.9)
second array (4,5,6,9,10,11)
results would be
first array (1,2,3,6,7,9)
second array (4,5,10,11)