What is a bitmask and a mask?

On the PHP documentation about JSON it mentions the word bitmask. Wikipedia has it defined as a mask. I don’t understand either bitmask or mask or how they are useful. Can some one explain these terms using layman’s terms and no jargon?

Leave a Comment