Jump to content

Archived

This topic is now archived and is closed to further replies.

wolves

meaning of

Recommended Posts

what the meaning of 
[code]
$myvar ^= ~$othervar;
[/code]
??? ??? ???

tks

Share this post


Link to post
Share on other sites
$a ^= $b    $a = $a ^ $b      Bitwise Xor

the ~ is just a bit flip of all the bits in the var that it precedes. (if I'm not mistaken)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.