Allora, hai detto che in input hai:

Codice PHP:
$A = array('a''b''c''d');
$B = array('e''f''g''h'); 
e in output che cosa vorresti ottenere?

Per favore posta il contenuto dell'array in codice PHP.