Question, got a script here, you dont really need to know much about it because im focusing on something independent here. BTW thanks in advance to whoever replies.

Ok: ive got a script that posts to itself and sends an ID number. then

$variable = '$array[' . $fileid . ']';
$variable = '$array[1]';

Can i swap that so that the one on the right is the variable, i cant figure out how to get the name on the right to become a variable itself? Help?