foreach ( $array1 as $kk=>$uno ) { $igual = array_search ( $uno, $array2 ); if ( $igual ) { echo " * ".$nombrealumno[$kk]."<br/>"; } }