PDA

View Full Version : Learning vB Programming: What is |= ?


Dax IX
07-11-2014, 05:30 PM
I'm having a heck of a time finding out what the operator |= is.

Google seems to ignore the | character.

What does |= mean?

It only seems to appear in the core code where Permissions are involved.

Dave
07-11-2014, 05:34 PM
It's a bitwise operator (http://php.net/manual/en/language.operators.bitwise.php).

$a | $b Or (inclusive or) Bits that are set in either $a or $b are set.

Dax IX
07-11-2014, 05:46 PM
Thank you. :)

I think I'm finally starting to get how permissions are set (maybe).