Codice PHP:
$var1 'testo';
$i 1;
echo ${
'var'.$i}; 
ma non farlo, usa un array invece.