0

Variable Variables

I didn't understand the 'variable variables' topics: there was a variable $a = "helloo"; $hello = "Hi!"; echo $a; OUTPUT: "Hi!"

25th Nov 2017, 5:47 AM
Mukesh Aryal
Mukesh Aryal - avatar
1 Resposta
+ 4
That is incorrect, it supposed to be $a = "hello" ; $hello = "Hi!" ; echo $a; What that happens is: Let's look on the double $: If $a = "hello", then: $ $a = $ hello = $hello = "Hi!" Understand?
25th Nov 2017, 11:09 AM
Ran Avital
Ran Avital - avatar