Hi,
i want to refer to variable using a string that represent its name.
i.e. in this example (which doesn't work ) i'd like to place value of 6 in 'y':
$x = "$y";
$y = 5 ;
eval($x) = 6;
can you tell me what is the correct way to do it ?
thanks,
i want to refer to variable using a string that represent its name.
i.e. in this example (which doesn't work ) i'd like to place value of 6 in 'y':
$x = "$y";
$y = 5 ;
eval($x) = 6;
can you tell me what is the correct way to do it ?
thanks,
Comment