Tild and minus operators in php

21 views Asked by At

I have found this line of code:

for(;1<$argn/=++$x;);echo~$argn

As an answer on code golf. I googled about tild symbol, and I found it's 2`complement.

So if it's like that why not simply use the - symbol. If they aren't equal symbols so what is the difference?

0

There are 0 answers