PHP debug_backtrace bitmask usage
bit-manipulation, bitmask, php, stack-trace
Solution
It means you combine options with the bitwise OR operator: `|`.
For example:
debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS);
For more details about bitmasks: http://en.wikipedia.org/wiki/Mask_(computing)
Problem
Trying to understand this entry in the php manual on `debug_backtrace`. I don't understand what they mean by "this parameter is a bitmask for ...." I have done web searches on bitmasks and my head is spinning round so I have decided I don't really want to learn the detail about it but just to know how I can supposed to add the options to that function. Do I put in both options as in ``` debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, DEBUG_BACKTRACE_IGNORE_ARGS) ``` if I want both and one of them if I only want that one?