Maybe I should have made the question a little bit more specific although I will instead make it wider =) More specifically I am thinking about these two scenarios:
Array example values: 5, 6, 8, 12, 16, 23, 35
Scenario 1:
Finding out if either 5, 8 or 23 exist in the array.
Scenario 2:
Finding out if both 5, 8 and 23 exist in the array.
In the second case array_diff is definitely the best choice but what about the first? Same and count the result? If the arrays are large this might not be a good idea?
In_array is the obvious choice for a single value but I'm not entirely sure of the functionality of in_array when the needle is an array?