-1

Possible Duplicate:
What is the difference between the | and || operators?
Reference - What does this symbol mean in PHP?

I am starting to use PHP again and I always remember using single |'s a lot and all my books are in storage, so I cant use them for a refrence and google doesnt give me very much. Any help appreciated!

Community
  • 1
  • 1
Cody Butz
  • 294
  • 4
  • 15
  • 2
    -1, what on earth did you google? I found the right manual page as the top result: www.google.co.nz/search?q=single+bar+or+operator+in+php – lsl Oct 16 '11 at 23:45

1 Answers1

1

bitwise OR http://www.php.net/manual/en/language.operators.bitwise.php

Bitwise Inclusive OR ( 5 = 0101) = ( 0 = 0000) | ( 5 = 0101) ( 5 = 0101) = ( 1 = 0001) | ( 5 = 0101) ( 7 = 0111) = ( 2 = 0010) | ( 5 = 0101) ( 5 = 0101) = ( 4 = 0100) | ( 5 = 0101) (13 = 1101) = ( 8 = 1000) | ( 5 = 0101)

dan_l
  • 1,692
  • 2
  • 23
  • 40