What do the “=&” and “&=” operators in PHP mean?

$a &= $b is short for $a = $a & $b which is the bitwise-and operator.

$a =& $b assigns $a as a reference to $b.

Leave a Comment