0

I got this piece of code which I'm analysing and it have this condition

if(($hint&self::HINT_WRITE  && $hint&self::HINT_NOWRITE) || ($hint&self::HINT_READ  && $hint&self::HINT_NOREAD))
{
    some code ..
}

Any Idea what '&' in '$variable&self::CONSTANT' means?

3
  • It's the bitwise AND operator Commented Feb 19, 2013 at 22:27
  • 2
    That's a very cramped-for-space bitwise AND Commented Feb 19, 2013 at 22:27
  • interesting names for the constants. Commented Feb 19, 2013 at 23:01

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.