What is the significance of the bitwise operator "|" in PHP?

The bitwise operator "|" in PHP is used for performing a bitwise OR operation on two integers. This operator compares each bit of the two integers and returns a new integer where each bit is set to 1 if either of the corresponding bits in the two integers is 1. This can be useful for combining or setting specific bits in integer values. Example PHP code snippet:

$number1 = 5; // 101 in binary
$number2 = 3; // 011 in binary

$result = $number1 | $number2; // Performing bitwise OR operation

echo $result; // Output: 7 (111 in binary)