PHP » Operators » |

Syntax:
expression1 | expression2
expression1
First operand.
expression2
Second operand.

Bitwise OR.

This is the bitwise OR operator.

Examples

Code:
<?php

$a = 11;
$b = 7;

printf("%b | %b = %b", $a, $b, $a | $b);

?>
Output:
1011 | 111 = 1111
Explanation:

The bitwise OR operator is used on the numbers 5 and 7.