error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
FWITW, doing this or just error_reporting(0) is the same. It takes a binary flag as arguments. It's like doing
0xFFFF & ~0xFFFF which obviously equals...
0.