Is there a one line test for whole numbers? I want to condense this function down to one line:
function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } TIA, Charlie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php