Example:
set_error_handler(array($this, 'handleError'), E_ALL & ~E_STRICT & ~E_WARNING & ~E_NOTICE);
what does that suppose to mean?
It is the bitwise not operator (also called "complement"). That is the bits set in ~ $a
are those that are not set in $a
.
So then
E_ALL & ~E_STRICT & ~E_WARNING & ~E_NOTICE
is the bits set in E_ALL
and those not set in E_STRICT
, E_WARNING
and E_NOTICE
. This basically says all errors except strict, warning and notice errors.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With