Wednesday, May 25, 2016

What do the "=&" and "&=" operators in PHP mean?



What do "=&" / "&=" operators in PHP mean? Where can I read information about them?



Searching Google doesn't help.



Answer



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



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


No comments:

Post a Comment