PHP Reference



This content originally appeared on DEV Community and was authored by Moraa oo

$a = '1';
$b = &$a;
$b = "2$b";

Can please anyone helps me, I can not understand what & Operator does when it comes with variables like that, My solution is $a = 1, $b = 21, is that right ?


This content originally appeared on DEV Community and was authored by Moraa oo