foreach ($array1 as $value) { if (in_array($value,$aarray2)) { echo 'doppelt gefunden: ' . $value; } }