rarebit Posted September 23, 2007 Share Posted September 23, 2007 What does this do in this instance with php? while (($exp >> $i)>0) Here's it working: $expo = 7963; $i = 0; while (($expo >> $i)>0) { echo "e: ".$expo.", ".$i." = ".($expo >> $i)."<br>"; $i++; } Quote Link to comment https://forums.phpfreaks.com/topic/70299--/ Share on other sites More sharing options...
marcus Posted September 23, 2007 Share Posted September 23, 2007 Directly from php.net $a >> $b Shift right Shift the bits of $a $b steps to the right (each step means "divide by two") http://us.php.net/manual/en/language.operators.bitwise.php Quote Link to comment https://forums.phpfreaks.com/topic/70299--/#findComment-353124 Share on other sites More sharing options...
rarebit Posted September 23, 2007 Author Share Posted September 23, 2007 Cheers, having trouble converting php to js... not that! Quote Link to comment https://forums.phpfreaks.com/topic/70299--/#findComment-353132 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.