Please could someone confirm how many parameters are being sent to error_reporting() in the code: error_reporting(E_ALL | E_STRICT);
My assumption is that there is only one parameter which is the result of a bit wise OR of the two constants in the brackets.
I’d just like to be sure that this is not an alternative way to send multiple parameters to a function (i.e. alternative to using ,). Or it’s not doing something funky like sending a array containing both constants as a single parameter?
You’re correct in your first assumption; it’s a bitwise OR between
E_ALLandE_STRICT. When I run the following code:I get this:
Which results in
When bitwise ORed.