Bitwise Operator in Php

 
 
<?php

$x=12;
$y=9;

$z=$x|$y;   // 13
$z1=$x&$y;   //8
$z2=$x^$y;   //5

echo $z;
echo $z1;
echo $z2;

?>

Bitwise Operator in Php Bitwise Operator in Php Reviewed by Unknown on 6:18:00 AM Rating: 5

No comments:

Powered by Blogger.