i want to log all php errors except notice and strict i tried the following code
error_reporting(E_ALL &^ E_NOTICE &^ E_STRICT);
but it gave me an error "unexpected ^"
You need to use & ~
instead of &^
:
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
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