chaiwei Posted March 23, 2009 Share Posted March 23, 2009 Hi I saw someone program which has if($strength & 1) what is this & means? Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted March 23, 2009 Share Posted March 23, 2009 AND Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted March 23, 2009 Share Posted March 23, 2009 Specifically a bitwise AND operator Quote Link to comment Share on other sites More sharing options...
chaiwei Posted March 26, 2009 Author Share Posted March 26, 2009 Hi, but what is the different between "&&" and "&". I thought we only allow to use "&&". Besides that, why ( a & 1) returns true? Quote Link to comment Share on other sites More sharing options...
Mchl Posted March 26, 2009 Share Posted March 26, 2009 Here you go: http://www.php.net/manual/en/language.operators.bitwise.php Quote Link to comment Share on other sites More sharing options...
chaiwei Posted March 26, 2009 Author Share Posted March 26, 2009 Thanks.. Quote Link to comment 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.