Contact: aviboots(AT)netvision.net.il
39,948 questions
51,890 answers
573 users
$haystack = [4, 8, 1, 9]; $target = [5, 7, 2, 8, 1, 6, 4, 0, 12]; echo count(array_intersect($haystack, $target)); /* run: 3 */