Si, ma infatti quello che ottengo con

Codice PHP:
${substr($ven[$i][1],0,5)}[substr($file,0,6)]=trim(substr($ven[$i][4],0,13)); 
è l'array

$30480[060212]
$30480[070212]
$30480[080212]
$30480[090212]

etc.. e la stessa cosa vale per 30481,30492 etc..
ho chiamato la variabile array con il valore di un'altra variabile array

con
Codice PHP:
substr($ven[$i][1],0,5); 
ottengo ad esempio 30480 (che poi è il codice)
con
Codice PHP:
substr($file,0,6
ottengo 060212 (che poi è la data)

ottengo

Codice PHP:
${substr($ven[$i][1],0,5)}[substr($file,0,6)]=trim(substr($ven[$i][4],0,13)); 
che con le ${ } vado ad utilizzare come variabile array il valore di substr($ven[$i][1],0,5) che è 30480 e quindi ottengo l'array

$30480[060212] = 12 a esempio..

Infatti se vado a mettere un echo all'interno della funzione.. visualizzo correttamente il risultato

Il problema è fuori..