What does this ~ operator mean here?

前端 未结 5 1905
清酒与你
清酒与你 2020-12-06 10:54

Example:

set_error_handler(array($this, \'handleError\'), E_ALL & ~E_STRICT & ~E_WARNING & ~E_NOTICE);

what does that suppose t

5条回答
  •  误落风尘
    2020-12-06 11:01

    It's the bitwise-not operator. For example the bitwise negation of a number with binary representation 01011110 would be 10100001; every single bit is flipped to its opposite.

提交回复
热议问题