Possible Duplicate:
Reference – What does this symbol mean in PHP?
What does this line do?
$theVal = ((($theR << 8) | $theG) << 8) | $theB;
What do the << and | do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Those are Bitwise operators that allow evaluation and manipulation of specific bits within an integer.
$a | $b Or Bits that are set in either $a or $b are set.
$a << $b Shift left Shift the bits of $a $b steps to the left (each step means “multiply by two”)
$a >> $b Shift right Shift the bits of $a $b steps to the right (each step means “divide by two”)