أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
$a is variable having string as type and contain 1 as value, $b is reference of $a so if we change the value of $b that value of $a is changed automatically because both having the same value.
So $b = '2$b' = '21' = $a .
Answer here ......................
So Both are equal to "21" ;
So, the result is '21'
the result is '21' as a string value
Pay attention to tha last line of the code.
$b = "2$b" (String)