Currently I have 2 array:
array(1, 2, 3, 4);
array(4, 5, 6, 7);
How can I check if there is at least one equal value in both of them? (The example above has 1 equal value => 4, so the function should return true).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
array_intersect()
returns an array containing all the values of array1 that are present in all the arguments. Note that keys are preserved
you get