标签: php
if(($n & ($n - 1)) == 0){ echo "$n is power of 2"; }else{ echo "$n is not power of 2";
}
因此,请有人说明条件部分,即($ n&($ n-1))。