I find the link in the code below is confused,
$a = 4;
$b = &$a;
var_dump($b);
$a = 10;
var_dump($b);
$b = 100;
var_dump($a);
The value $bis a reference to $a, and $ais never a reference to $b.
But why when I change the meaning $b. Does the value also change $a?
source
share