Wednesday, 25 May 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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...