chaiwei Posted March 23, 2009 Share Posted March 23, 2009 Hi I saw someone program which has if($strength & 1) what is this & means? Link to comment https://forums.phpfreaks.com/topic/150695-solved-what-is-this/ Share on other sites More sharing options...
shadiadiph Posted March 23, 2009 Share Posted March 23, 2009 AND Link to comment https://forums.phpfreaks.com/topic/150695-solved-what-is-this/#findComment-791637 Share on other sites More sharing options...
Mark Baker Posted March 23, 2009 Share Posted March 23, 2009 Specifically a bitwise AND operator Link to comment https://forums.phpfreaks.com/topic/150695-solved-what-is-this/#findComment-791652 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? Link to comment https://forums.phpfreaks.com/topic/150695-solved-what-is-this/#findComment-794248 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 Link to comment https://forums.phpfreaks.com/topic/150695-solved-what-is-this/#findComment-794265 Share on other sites More sharing options...
chaiwei Posted March 26, 2009 Author Share Posted March 26, 2009 Thanks.. Link to comment https://forums.phpfreaks.com/topic/150695-solved-what-is-this/#findComment-794276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.