Miscellany
public text v1 · immutable<?
$xs = array(2,3,4,6,8,12,16,24,32,48,64,96,128,192);
foreach ($xs as $x) {
if ( (($x & $x-1)) == FALSE) {
echo "$x - BURP! ($x is a power of 2.)\n";
} else {
echo "$x - KITTY GONNA DIEE! ($x is not a power of 2)\n";
}
}
?>