I have two arrays
one like
1 | 1st name 2 | 2nd name 3 | 3rd name 4 | 4th name
and one like
1st name 2nd name 3rd name 4th name 5th name 6th name 7th name
Basically I want to intersect these arrays
I need to interesect these arrays so I end up with the second array being just
5th name 6th name 7th name
How would I go about doing this?
What you have described looks more like diff. If values of your array look exactly like you described, you’ll have to parse it into temp array first, so you end up with the exact form of data in both of the arrays you want to diff.