${ 'radio_' . $ucount } = param( "radio_$ucount" ); ${ "textarea$ucount" } = param( 'textarea' . $ucount );
print "something$ucount"; # prints 'something1' print 'something$ucount'; # prints 'something$ucount'
$x = "something$ucountElse"; # probably tries to interpolate a variable called # $ucountElse, ambiguous $x = "something" . $ucount . "Else"; # Unambiguous
$x = "something${ucount}Else";
In reply to Re: Using Variables with Variables
by saintly
in thread Using Variables with Variables
by Trihedralguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |