Bitwise operators in action : Bitwise Operators « Operator « PHP






Bitwise operators in action


<?php
     $answers = 88;
     $question_four = 8;
   
     $answers = $answers ^ $question_four;
     print($answers . "<br />");
     $answers = $answers | $question_four;
     print($answers . "<br />");
     $answers = $answers ^ $question_four;
     print($answers . "<br />");
?>
           
       








Related examples in the same category

1.Bitwise Operators
2.Bitwise Operators summary table