Two associative arrays A and B: how do I check if any value of from array A exists in array B without a foreach or any other loop?
Is this possible?
There is array_key_exists and in_array but they search for values in an array, not values from an array in another array.
Hope this makes some kind of sense 🙂
You can use array_intersect(A,B) to get a list of values present in both arrays.