Mega Code Archive

 
Categories / Php / Data Type
 

Float is converted to an integer before the binary and (&) operation is executed

<?php $a = 3.5; $b = $a & 2; echo "$a & 2 = $b"; ?>