$value){ if($value===$B[$key]){ $ans="YES"; }else if($value!==$B[$key]){ $ans="NO"; break; } } echo $ans; ?>