Hi all, Not sure exactly what this is called so cannot find a tutorial. Here is the code:
$a3 = "Hello"; $b = "a"; $c = "3"; $d = "${$b.$c}"; print $d; # $d should be prints as Hello
This works fine, but if I change it a little:
$a[3] = "Hello"; $b = "a"; $c = "[3]"; $d = "${$b.$c}"; print $d; # $d should be prints as Hello
It no longer works...
What am I doing wrong?
Any help would be very much appreciated and thank you very much in advance!
~Kirill
In reply to Combining 2 variable? by Krillian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |