la sintassi realmente corretta per poter stampare un parametro in array è

echo "Prodotto: {$titolo[$x]} Quantità : {$quantita[$x]}
";


in questa maniera non avrai MAI problemi anche su sistemi e versioni php differenti