+ 1
Variable Variable
Hi all, I don't understand this especial in this example <?php $a = 'hello'; $hello = "Hi!"; echo $a; // Outputs 'Hi!' ?>
1 Answer
+ 8
Since $a is "hello", then $a can be thought of as:
$($a) - - > $(hello) - - > $hello
Since $hello is "Hi!", then so is $a.