Codice PHP:
if (in_array($key_A[$i], $titolo) && !in_array($key_B[$i], $titolo)) {                 
// fai qualcosa