Check the common elements of two arrays
Posted: 21 Nov 2014, 13:19
Hi
I have two arrays $a1 and $a2 with various elements.
How can I check which item from $a2 is in $a1? Is there any function, or I have to traverse with a for() instruction the $a2 items and compare with elements of $a1?
I have two arrays $a1 and $a2 with various elements.
How can I check which item from $a2 is in $a1? Is there any function, or I have to traverse with a for() instruction the $a2 items and compare with elements of $a1?