0
I got a question in an interview $a = '2'; $b = &$a; $b = '5$b';
What will be output $b?
3 Réponses
+ 1
In your code $b is 5$b .
When you use
$b = "5$b" #double quote
Then $b will be 52
+ 1
$b = &$a. Means $b is a reference variable of $a .
Any changes made to $b will also change value of $a as $b is reference to $a
0
What about &? In JavaScript it is bitwise operator..