0
This is confusing me, can someone explain this to me.
<?php $a = 'hello'; $hello = "Hi!"; echo $a; // Outputs 'Hi!' ?> I don’t understand how this works. What does ‘echo $a;’ do. How would I use it. Helllpppp!
4 Respostas
+ 1
Think reverse
$a = 'hello' => 'hello'=>$a
$hello=$a
$s='Hi!'
Hope you understand
one thing to note: use search bar
+ 1
First you have double sign for variable => $. $a = 'hello', so we have $($a => 'hello'), next is $hello (first evaluating inner variable $a which is the string 'hello'), then the outer $hello (which is the string 'Hi!'). Hope it helps you :)
0
i dont really understand =/
0
Nope, i still dont understand this :((((((((