Bitwise operators in action : Bitwise Operators : Language Basics PHP Source Code


PHP Source Code » Language Basics » Bitwise Operators »

 

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 />");
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Bitwise Operators