I have two arrays in php that contain custom class objects. One I iterate through in a while loop, using $h, and the other I access through another variable, $i, inside the while loop for comparison. I only increment $i within the parent loop if a certain condition is met, and there may be multiple copies of the same object within the array, which I need to skip over.I have two arrays in php that contain custom cl