toggleFlag.php
Table of Contents
Functions
- toggleFlag() : int
- Toggles a specific flag in a bitmask.
Functions
toggleFlag()
Toggles a specific flag in a bitmask.
toggleFlag(int $mask, int $flag) : int
If the flag is present, it will be removed; if absent, it will be added.
Parameters
- $mask : int
-
The original bitmask.
- $flag : int
-
The flag to toggle.
Tags
Return values
int —The new bitmask with the flag toggled.