jeudi 30 novembre 2017

Random & operator, what does it do?

OK! So i've been working on this almost 20 y/o project build in VB Script. We decided to try to convert it to PHP 7+ but we've ran into a if statement we do not know what do even though it works..

Can anyone tell me what the beep this statement does??
if (26 AND 8) = 8 then

We tried to convert it to php like this..
if((26 & 8) == 8) {

And it allowed us!..

So can anyone please tell me..
What the beep is happening in this code that makes 26 & 8 == 8?

I would love it if you could get me a reference or a proper answer here.
Since i personally hate when i dont know what my code does.

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire