Compare array in loop
- by user3626084
I have 2 arrays with different sizes, in some cases one array can have more elements than the other array. However, I always need to compare the arrays using the same id. I need to get the other value with the same id in the other array
I have tried this, but the problem happens when I compare the two arrays in a loop when the other array has…